]> code.citadel.org Git - citadel.git/blobdiff - citadel/server/database.c
Changed the API for cdb_rewind() / cdb_next_item() to make the caller hold the cursor
[citadel.git] / citadel / server / database.c
index 5aa7d0e27ebd496efc9ebc8a719e830d01d76ceb..dcae3d0a0af1ef175a1b8bf01da13b68eb109d0c 100644 (file)
@@ -26,7 +26,8 @@ void                  (*cdb_close_databases)(void)                            = 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;
+void *                 (*cdb_rewind)(int)                                      = NULL;
+struct cdbdata *       (*cdb_next_item)(void *, int)                           = NULL;
 void                   (*cdb_close_cursor)(int)                                = NULL;
 void                   (*cdb_begin_transaction)(void)                          = NULL;
 void                   (*cdb_end_transaction)(void)                            = NULL;
@@ -36,7 +37,6 @@ void                  (*cdb_chmod_data)(void)                                 = NULL;
 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.