X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fobject.h;h=19d6cc33799c68eeefa3a7e72f322fdf2522201c;hb=5f48615842bd6c16984ae1113951c68bc987ade6;hp=b91e9b88cebf815fe1dd6e22234c0140bb2d682f;hpb=246943645fbba04c41221e485cb80be5a74ed0a3;p=sysdb.git diff --git a/src/include/core/object.h b/src/include/core/object.h index b91e9b8..19d6cc3 100644 --- a/src/include/core/object.h +++ b/src/include/core/object.h @@ -74,6 +74,11 @@ typedef struct { /* * Callback types for comparing objects or performing object lookup. + * Any function of type sdb_object_cmp_cb shall return a negative value, zero, + * or a positive value if the first object compares less than, equal to, or + * greater than the second object respectively. + * Any function of type sdb_object_lookup_cb shall return zero for all + * matching objects. */ typedef int (*sdb_object_cmp_cb)(const sdb_object_t *, const sdb_object_t *); typedef int (*sdb_object_lookup_cb)(const sdb_object_t *, const void *user_data);