Code

utils llist: Added sdb_llist_get().
[sysdb.git] / src / include / utils / llist.h
index f33958a7550bffe3d0fab8d1195cd7483b5ee08c..3eefae5e19b894adf457a5d195e7840a11f79757 100644 (file)
@@ -119,6 +119,13 @@ int
 sdb_llist_insert_sorted(sdb_llist_t *list,
                sdb_object_t *obj, sdb_llist_cmp_cb);
 
+/*
+ * sdb_llist_get:
+ * Returns the i-th element of the list or NULL in case of an error.
+ */
+sdb_object_t *
+sdb_llist_get(sdb_llist_t *list, size_t i);
+
 /*
  * sdb_llist_search:
  * Search for a object in the given 'list'. The function will return the first