diff options
Diffstat (limited to 'src/datastore/plugin_datastore_template.c')
-rw-r--r-- | src/datastore/plugin_datastore_template.c | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/datastore/plugin_datastore_template.c b/src/datastore/plugin_datastore_template.c index 7ab469140..566155fb5 100644 --- a/src/datastore/plugin_datastore_template.c +++ b/src/datastore/plugin_datastore_template.c | |||
@@ -71,13 +71,9 @@ template_plugin_estimate_size (void *cls) | |||
71 | * @return GNUNET_OK on success | 71 | * @return GNUNET_OK on success |
72 | */ | 72 | */ |
73 | static int | 73 | static int |
74 | template_plugin_put (void *cls, | 74 | template_plugin_put (void *cls, const GNUNET_HashCode * key, uint32_t size, |
75 | const GNUNET_HashCode * key, | 75 | const void *data, enum GNUNET_BLOCK_Type type, |
76 | uint32_t size, | 76 | uint32_t priority, uint32_t anonymity, |
77 | const void *data, | ||
78 | enum GNUNET_BLOCK_Type type, | ||
79 | uint32_t priority, | ||
80 | uint32_t anonymity, | ||
81 | uint32_t replication, | 77 | uint32_t replication, |
82 | struct GNUNET_TIME_Absolute expiration, char **msg) | 78 | struct GNUNET_TIME_Absolute expiration, char **msg) |
83 | { | 79 | { |
@@ -106,12 +102,11 @@ template_plugin_put (void *cls, | |||
106 | * @param proc_cls closure for proc | 102 | * @param proc_cls closure for proc |
107 | */ | 103 | */ |
108 | static void | 104 | static void |
109 | template_plugin_get_key (void *cls, | 105 | template_plugin_get_key (void *cls, uint64_t offset, |
110 | uint64_t offset, | ||
111 | const GNUNET_HashCode * key, | 106 | const GNUNET_HashCode * key, |
112 | const GNUNET_HashCode * vhash, | 107 | const GNUNET_HashCode * vhash, |
113 | enum GNUNET_BLOCK_Type type, | 108 | enum GNUNET_BLOCK_Type type, PluginDatumProcessor proc, |
114 | PluginDatumProcessor proc, void *proc_cls) | 109 | void *proc_cls) |
115 | { | 110 | { |
116 | GNUNET_break (0); | 111 | GNUNET_break (0); |
117 | } | 112 | } |
@@ -130,8 +125,8 @@ template_plugin_get_key (void *cls, | |||
130 | * @param proc_cls closure for proc | 125 | * @param proc_cls closure for proc |
131 | */ | 126 | */ |
132 | static void | 127 | static void |
133 | template_plugin_get_replication (void *cls, | 128 | template_plugin_get_replication (void *cls, PluginDatumProcessor proc, |
134 | PluginDatumProcessor proc, void *proc_cls) | 129 | void *proc_cls) |
135 | { | 130 | { |
136 | GNUNET_break (0); | 131 | GNUNET_break (0); |
137 | } | 132 | } |
@@ -146,8 +141,8 @@ template_plugin_get_replication (void *cls, | |||
146 | * @param proc_cls closure for proc | 141 | * @param proc_cls closure for proc |
147 | */ | 142 | */ |
148 | static void | 143 | static void |
149 | template_plugin_get_expiration (void *cls, | 144 | template_plugin_get_expiration (void *cls, PluginDatumProcessor proc, |
150 | PluginDatumProcessor proc, void *proc_cls) | 145 | void *proc_cls) |
151 | { | 146 | { |
152 | GNUNET_break (0); | 147 | GNUNET_break (0); |
153 | } | 148 | } |
@@ -177,9 +172,7 @@ template_plugin_get_expiration (void *cls, | |||
177 | * @return GNUNET_OK on success | 172 | * @return GNUNET_OK on success |
178 | */ | 173 | */ |
179 | static int | 174 | static int |
180 | template_plugin_update (void *cls, | 175 | template_plugin_update (void *cls, uint64_t uid, int delta, |
181 | uint64_t uid, | ||
182 | int delta, | ||
183 | struct GNUNET_TIME_Absolute expire, char **msg) | 176 | struct GNUNET_TIME_Absolute expire, char **msg) |
184 | { | 177 | { |
185 | GNUNET_break (0); | 178 | GNUNET_break (0); |
@@ -201,8 +194,7 @@ template_plugin_update (void *cls, | |||
201 | * @param proc_cls closure for proc | 194 | * @param proc_cls closure for proc |
202 | */ | 195 | */ |
203 | static void | 196 | static void |
204 | template_plugin_get_zero_anonymity (void *cls, | 197 | template_plugin_get_zero_anonymity (void *cls, uint64_t offset, |
205 | uint64_t offset, | ||
206 | enum GNUNET_BLOCK_Type type, | 198 | enum GNUNET_BLOCK_Type type, |
207 | PluginDatumProcessor proc, void *proc_cls) | 199 | PluginDatumProcessor proc, void *proc_cls) |
208 | { | 200 | { |
@@ -245,8 +237,8 @@ libgnunet_plugin_datastore_template_init (void *cls) | |||
245 | api->get_expiration = &template_plugin_get_expiration; | 237 | api->get_expiration = &template_plugin_get_expiration; |
246 | api->get_zero_anonymity = &template_plugin_get_zero_anonymity; | 238 | api->get_zero_anonymity = &template_plugin_get_zero_anonymity; |
247 | api->drop = &template_plugin_drop; | 239 | api->drop = &template_plugin_drop; |
248 | GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, | 240 | GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, "template", |
249 | "template", _("Template database running\n")); | 241 | _("Template database running\n")); |
250 | return api; | 242 | return api; |
251 | } | 243 | } |
252 | 244 | ||