index 819d11e849b48d4e1e2eb65d35247f4abe22af29..42352b085876b48cbbaca7716670d05c4bc06d14 100644 (file)
#define SDB_OBJ_WRAPPER(obj) ((sdb_object_wrapper_t *)(obj))
#define SDB_CONST_OBJ_WRAPPER(obj) ((const sdb_object_wrapper_t *)(obj))
+/*
+ * Callback types for comparing objects or performing object lookup.
+ */
+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);
+
/*
* sdb_object_create:
* Allocates a new sdb_object_t of the specified 'name' and 'type'. The object