]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/database.c
cdb_fetch() and cdb_next_item() now return a struct cdbdata instead of a pointer...
[citadel.git] / citadel / server / database.c
index b3701b4b6a78a7754264bd49178ad4c86ee0bdff..7f6a612aab3bfaafa42dc30916f20b77899ba9be 100644 (file)
 // The initialization function of the selected backend will map them.
 void                   (*cdb_open_databases)(void)                             = NULL;
 void                   (*cdb_close_databases)(void)                            = NULL;
+struct cdbdata                 (*cdb_fetch)(int, const void *, int)                    = NULL;
 int                    (*cdb_store)(int, const void *, int, void *, int)       = NULL;
 int                    (*cdb_delete)(int, void *, int)                         = NULL;
 void                   (*cdb_free)(struct cdbdata *)                           = NULL;
-struct cdbdata *       (*cdb_next_item)(int)                                   = NULL;
+struct cdbdata         (*cdb_next_item)(int)                                   = NULL;
 void                   (*cdb_close_cursor)(int)                                = NULL;
 void                   (*cdb_begin_transaction)(void)                          = NULL;
 void                   (*cdb_end_transaction)(void)                            = NULL;
@@ -37,7 +38,6 @@ void                  (*check_handles)(void *)                                = NULL;
 void                   (*cdb_compact)(void)                                    = NULL;
 void                   (*cdb_checkpoint)(void)                                 = NULL;
 void                   (*cdb_rewind)(int)                                      = NULL;
-struct cdbdata *       (*cdb_fetch)(int, const void *, int)                    = NULL;
 
 // This function is responsible for choosing and initializing a back end.
 void cdb_init_backends(void) {