diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-25 22:24:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-25 22:24:42 +0000 |
commit | c890b76cde9288a8d9f2faa3046fbb06341c8082 (patch) | |
tree | b2c072b5ad2fba45a6bf5856209963fbf37375c3 /src/datastore/plugin_datastore_template.c | |
parent | 2ec742c593419e3225fa87dcf44ca96fb62d62b5 (diff) | |
download | gnunet-c890b76cde9288a8d9f2faa3046fbb06341c8082.tar.gz gnunet-c890b76cde9288a8d9f2faa3046fbb06341c8082.zip |
towards datacache implementation
Diffstat (limited to 'src/datastore/plugin_datastore_template.c')
-rw-r--r-- | src/datastore/plugin_datastore_template.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/datastore/plugin_datastore_template.c b/src/datastore/plugin_datastore_template.c index a364a0faa..4bfb452ed 100644 --- a/src/datastore/plugin_datastore_template.c +++ b/src/datastore/plugin_datastore_template.c | |||
@@ -47,6 +47,7 @@ struct Plugin | |||
47 | */ | 47 | */ |
48 | static unsigned long long template_plugin_get_size (void *cls) | 48 | static unsigned long long template_plugin_get_size (void *cls) |
49 | { | 49 | { |
50 | GNUNET_break (0); | ||
50 | return 0; | 51 | return 0; |
51 | } | 52 | } |
52 | 53 | ||
@@ -76,6 +77,7 @@ template_plugin_put (void *cls, | |||
76 | struct GNUNET_TIME_Absolute expiration, | 77 | struct GNUNET_TIME_Absolute expiration, |
77 | char **msg) | 78 | char **msg) |
78 | { | 79 | { |
80 | GNUNET_break (0); | ||
79 | *msg = GNUNET_strdup ("not implemented"); | 81 | *msg = GNUNET_strdup ("not implemented"); |
80 | return GNUNET_SYSERR; | 82 | return GNUNET_SYSERR; |
81 | } | 83 | } |
@@ -94,9 +96,10 @@ template_plugin_put (void *cls, | |||
94 | * to signal the end of the iteration). | 96 | * to signal the end of the iteration). |
95 | */ | 97 | */ |
96 | static void | 98 | static void |
97 | template_next_request (void *next_cls, | 99 | template_plugin_next_request (void *next_cls, |
98 | int end_it) | 100 | int end_it) |
99 | { | 101 | { |
102 | GNUNET_break (0); | ||
100 | } | 103 | } |
101 | 104 | ||
102 | 105 | ||
@@ -124,6 +127,7 @@ template_plugin_get (void *cls, | |||
124 | uint32_t type, | 127 | uint32_t type, |
125 | PluginIterator iter, void *iter_cls) | 128 | PluginIterator iter, void *iter_cls) |
126 | { | 129 | { |
130 | GNUNET_break (0); | ||
127 | } | 131 | } |
128 | 132 | ||
129 | 133 | ||
@@ -155,6 +159,7 @@ template_plugin_update (void *cls, | |||
155 | int delta, struct GNUNET_TIME_Absolute expire, | 159 | int delta, struct GNUNET_TIME_Absolute expire, |
156 | char **msg) | 160 | char **msg) |
157 | { | 161 | { |
162 | GNUNET_break (0); | ||
158 | *msg = GNUNET_strdup ("not implemented"); | 163 | *msg = GNUNET_strdup ("not implemented"); |
159 | return GNUNET_SYSERR; | 164 | return GNUNET_SYSERR; |
160 | } | 165 | } |
@@ -176,6 +181,7 @@ template_plugin_iter_low_priority (void *cls, | |||
176 | PluginIterator iter, | 181 | PluginIterator iter, |
177 | void *iter_cls) | 182 | void *iter_cls) |
178 | { | 183 | { |
184 | GNUNET_break (0); | ||
179 | } | 185 | } |
180 | 186 | ||
181 | 187 | ||
@@ -196,6 +202,7 @@ template_plugin_iter_zero_anonymity (void *cls, | |||
196 | PluginIterator iter, | 202 | PluginIterator iter, |
197 | void *iter_cls) | 203 | void *iter_cls) |
198 | { | 204 | { |
205 | GNUNET_break (0); | ||
199 | } | 206 | } |
200 | 207 | ||
201 | 208 | ||
@@ -216,6 +223,7 @@ template_plugin_iter_ascending_expiration (void *cls, | |||
216 | PluginIterator iter, | 223 | PluginIterator iter, |
217 | void *iter_cls) | 224 | void *iter_cls) |
218 | { | 225 | { |
226 | GNUNET_break (0); | ||
219 | } | 227 | } |
220 | 228 | ||
221 | 229 | ||
@@ -236,6 +244,7 @@ template_plugin_iter_migration_order (void *cls, | |||
236 | PluginIterator iter, | 244 | PluginIterator iter, |
237 | void *iter_cls) | 245 | void *iter_cls) |
238 | { | 246 | { |
247 | GNUNET_break (0); | ||
239 | } | 248 | } |
240 | 249 | ||
241 | 250 | ||
@@ -256,6 +265,7 @@ template_plugin_iter_all_now (void *cls, | |||
256 | PluginIterator iter, | 265 | PluginIterator iter, |
257 | void *iter_cls) | 266 | void *iter_cls) |
258 | { | 267 | { |
268 | GNUNET_break (0); | ||
259 | } | 269 | } |
260 | 270 | ||
261 | 271 | ||
@@ -265,6 +275,7 @@ template_plugin_iter_all_now (void *cls, | |||
265 | static void | 275 | static void |
266 | template_plugin_drop (void *cls) | 276 | template_plugin_drop (void *cls) |
267 | { | 277 | { |
278 | GNUNET_break (0); | ||
268 | } | 279 | } |
269 | 280 | ||
270 | 281 | ||
@@ -284,7 +295,7 @@ libgnunet_plugin_datastore_template_init (void *cls) | |||
284 | api->cls = plugin; | 295 | api->cls = plugin; |
285 | api->get_size = &template_plugin_get_size; | 296 | api->get_size = &template_plugin_get_size; |
286 | api->put = &template_plugin_put; | 297 | api->put = &template_plugin_put; |
287 | api->next_request = &template_next_request; | 298 | api->next_request = &template_plugin_next_request; |
288 | api->get = &template_plugin_get; | 299 | api->get = &template_plugin_get; |
289 | api->update = &template_plugin_update; | 300 | api->update = &template_plugin_update; |
290 | api->iter_low_priority = &template_plugin_iter_low_priority; | 301 | api->iter_low_priority = &template_plugin_iter_low_priority; |