cdb_next_item() now returns both key and value
[citadel.git] / citadel / server / server.h
index c628df2a18e09e49cf28a8685c6e4278a847ede5..f58a9c3f1d7715ec6eebb070dab51eca07bb6a3d 100644 (file)
@@ -73,6 +73,13 @@ struct cdbdata {
 };
 
 
+// Row being fetched from the database, both key and value are returned
+struct cdbkeyval {
+       struct cdbdata key;             // size and pointer to key
+       struct cdbdata val;             // size and pointer to value
+};
+
+
 // Defines the relationship of a user to a particular room
 // NOTE: if you add fields to this, you have to also write export/import code in server/modules/migrate/serv_migrate.c
 // NOTE: if you add fields to this, you have to also write conversion code in utils/ctdl3264/*