X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Futils%2Fllist.h;h=93561906b6056a272f468c9c87187469004b8246;hb=8fae96642304f80a5ce343626970b1cff87123f2;hp=3eefae5e19b894adf457a5d195e7840a11f79757;hpb=ea29adb896a47f32e86119d6161dc5bc2259565b;p=sysdb.git diff --git a/src/include/utils/llist.h b/src/include/utils/llist.h index 3eefae5..9356190 100644 --- a/src/include/utils/llist.h +++ b/src/include/utils/llist.h @@ -121,7 +121,9 @@ sdb_llist_insert_sorted(sdb_llist_t *list, /* * sdb_llist_get: - * Returns the i-th element of the list or NULL in case of an error. + * Returns the i-th element of the list or NULL in case of an error. The + * reference count of the element is incremented before returning it to share + * ownership between the list and the caller. */ sdb_object_t * sdb_llist_get(sdb_llist_t *list, size_t i);