Changeset 219f52c for messagelist.c
- Timestamp:
- Jan 23, 2012, 5:27:42 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.9
- Children:
- d126a19
- Parents:
- ab88b05
- git-author:
- Jason Gross <jgross@mit.edu> (07/23/11 23:09:55)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/23/12 17:27:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
messagelist.c
rf271129 r219f52c 1 1 #include "owl.h" 2 2 3 void owl_messagelist_create(owl_messagelist *ml)3 CALLER_OWN owl_messagelist *owl_messagelist_new(void) 4 4 { 5 owl_messagelist *ml = g_new(owl_messagelist, 1); 5 6 ml->list = g_ptr_array_new(); 7 return ml; 6 8 } 7 9 8 void owl_messagelist_ cleanup(owl_messagelist *ml, bool free_messages)10 void owl_messagelist_delete(owl_messagelist *ml, bool free_messages) 9 11 { 10 12 if (free_messages) 11 13 g_ptr_array_foreach(ml->list, (GFunc)owl_message_delete, NULL); 12 14 g_ptr_array_free(ml->list, true); 15 g_free(ml); 13 16 } 14 17
Note: See TracChangeset
for help on using the changeset viewer.