~ubuntu-branches/ubuntu/raring/libnih/raring

« back to all changes in this revision

Viewing changes to nih/list.h

  • Committer: James Hunt
  • Date: 2013-03-14 10:27:34 UTC
  • mfrom: (1027.1.34 upstart-devel-libnih)
  • Revision ID: james.hunt@ubuntu.com-20130314102734-blit21ei3v9n0u2o
Tags: 1.0.3-4ubuntu16
Merge of important fixes from lp:~upstart-devel/libnih/nih
(LP: #776532, LP: #777097, LP: #834813, LP: #1123588).

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 * after a known entry, and remove an entry from the list.
38
38
 *
39
39
 * List entries may be created in one of two ways.  The most common is to
40
 
 * embed the NihList structure as the frist member of your own structure,
 
40
 * embed the NihList structure as the first member of your own structure,
41
41
 * and initialise it with nih_list_init() after allocating the structure.
42
42
 * Alternatively you may create NihListEntry structures with
43
43
 * nih_list_entry_new() and point at your own data from them.
196
196
 
197
197
void          nih_list_init      (NihList *entry);
198
198
NihList *     nih_list_new       (const void *parent)
199
 
        __attribute__ ((warn_unused_result, malloc));
 
199
        __attribute__ ((warn_unused_result));
200
200
 
201
201
NihListEntry *nih_list_entry_new (const void *parent)
202
 
        __attribute__ ((warn_unused_result, malloc));
 
202
        __attribute__ ((warn_unused_result));
203
203
 
204
204
 
205
205
NihList *     nih_list_add       (NihList *list, NihList *entry);