diff options
Diffstat (limited to 'src/messenger/gnunet-service-messenger_operation_store.c')
-rw-r--r-- | src/messenger/gnunet-service-messenger_operation_store.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/messenger/gnunet-service-messenger_operation_store.c b/src/messenger/gnunet-service-messenger_operation_store.c index a32fbad2c..4f8419daa 100644 --- a/src/messenger/gnunet-service-messenger_operation_store.c +++ b/src/messenger/gnunet-service-messenger_operation_store.c | |||
@@ -29,7 +29,8 @@ | |||
29 | #include "gnunet-service-messenger_room.h" | 29 | #include "gnunet-service-messenger_room.h" |
30 | 30 | ||
31 | void | 31 | void |
32 | init_operation_store (struct GNUNET_MESSENGER_OperationStore *store, struct GNUNET_MESSENGER_SrvRoom *room) | 32 | init_operation_store (struct GNUNET_MESSENGER_OperationStore *store, |
33 | struct GNUNET_MESSENGER_SrvRoom *room) | ||
33 | { | 34 | { |
34 | GNUNET_assert((store) && (room)); | 35 | GNUNET_assert((store) && (room)); |
35 | 36 | ||
@@ -38,7 +39,9 @@ init_operation_store (struct GNUNET_MESSENGER_OperationStore *store, struct GNUN | |||
38 | } | 39 | } |
39 | 40 | ||
40 | static int | 41 | static int |
41 | iterate_destroy_operations (void *cls, const struct GNUNET_HashCode *key, void *value) | 42 | iterate_destroy_operations (void *cls, |
43 | const struct GNUNET_HashCode *key, | ||
44 | void *value) | ||
42 | { | 45 | { |
43 | struct GNUNET_MESSENGER_Operation *op = value; | 46 | struct GNUNET_MESSENGER_Operation *op = value; |
44 | 47 | ||
@@ -57,7 +60,8 @@ clear_operation_store (struct GNUNET_MESSENGER_OperationStore *store) | |||
57 | } | 60 | } |
58 | 61 | ||
59 | static int | 62 | static int |
60 | callback_scan_for_operations (void *cls, const char *filename) | 63 | callback_scan_for_operations (void *cls, |
64 | const char *filename) | ||
61 | { | 65 | { |
62 | struct GNUNET_MESSENGER_OperationStore *store = cls; | 66 | struct GNUNET_MESSENGER_OperationStore *store = cls; |
63 | 67 | ||
@@ -94,7 +98,9 @@ load_operation_store (struct GNUNET_MESSENGER_OperationStore *store, | |||
94 | } | 98 | } |
95 | 99 | ||
96 | static int | 100 | static int |
97 | iterate_save_operations (void *cls, const struct GNUNET_HashCode *key, void *value) | 101 | iterate_save_operations (void *cls, |
102 | const struct GNUNET_HashCode *key, | ||
103 | void *value) | ||
98 | { | 104 | { |
99 | const char *save_dir = cls; | 105 | const char *save_dir = cls; |
100 | 106 | ||
@@ -192,10 +198,12 @@ cancel_store_operation (struct GNUNET_MESSENGER_OperationStore *store, | |||
192 | } | 198 | } |
193 | 199 | ||
194 | extern void | 200 | extern void |
195 | callback_room_deletion (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_HashCode *hash); | 201 | callback_room_deletion (struct GNUNET_MESSENGER_SrvRoom *room, |
202 | const struct GNUNET_HashCode *hash); | ||
196 | 203 | ||
197 | extern void | 204 | extern void |
198 | callback_room_merge (struct GNUNET_MESSENGER_SrvRoom *room, const struct GNUNET_HashCode *hash); | 205 | callback_room_merge (struct GNUNET_MESSENGER_SrvRoom *room, |
206 | const struct GNUNET_HashCode *hash); | ||
199 | 207 | ||
200 | void | 208 | void |
201 | callback_store_operation (struct GNUNET_MESSENGER_OperationStore *store, | 209 | callback_store_operation (struct GNUNET_MESSENGER_OperationStore *store, |