diff options
Diffstat (limited to 'src/datastore/plugin_datastore_template.c')
-rw-r--r-- | src/datastore/plugin_datastore_template.c | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/src/datastore/plugin_datastore_template.c b/src/datastore/plugin_datastore_template.c index 8975c0a70..7ab469140 100644 --- a/src/datastore/plugin_datastore_template.c +++ b/src/datastore/plugin_datastore_template.c | |||
@@ -31,7 +31,7 @@ | |||
31 | /** | 31 | /** |
32 | * Context for all functions in this plugin. | 32 | * Context for all functions in this plugin. |
33 | */ | 33 | */ |
34 | struct Plugin | 34 | struct Plugin |
35 | { | 35 | { |
36 | /** | 36 | /** |
37 | * Our execution environment. | 37 | * Our execution environment. |
@@ -47,7 +47,7 @@ struct Plugin | |||
47 | * @param cls our "struct Plugin*" | 47 | * @param cls our "struct Plugin*" |
48 | * @return number of bytes used on disk | 48 | * @return number of bytes used on disk |
49 | */ | 49 | */ |
50 | static unsigned long long | 50 | static unsigned long long |
51 | template_plugin_estimate_size (void *cls) | 51 | template_plugin_estimate_size (void *cls) |
52 | { | 52 | { |
53 | GNUNET_break (0); | 53 | GNUNET_break (0); |
@@ -72,15 +72,14 @@ template_plugin_estimate_size (void *cls) | |||
72 | */ | 72 | */ |
73 | static int | 73 | static int |
74 | template_plugin_put (void *cls, | 74 | template_plugin_put (void *cls, |
75 | const GNUNET_HashCode * key, | 75 | const GNUNET_HashCode * key, |
76 | uint32_t size, | 76 | uint32_t size, |
77 | const void *data, | 77 | const void *data, |
78 | enum GNUNET_BLOCK_Type type, | 78 | enum GNUNET_BLOCK_Type type, |
79 | uint32_t priority, | 79 | uint32_t priority, |
80 | uint32_t anonymity, | 80 | uint32_t anonymity, |
81 | uint32_t replication, | 81 | uint32_t replication, |
82 | struct GNUNET_TIME_Absolute expiration, | 82 | struct GNUNET_TIME_Absolute expiration, char **msg) |
83 | char **msg) | ||
84 | { | 83 | { |
85 | GNUNET_break (0); | 84 | GNUNET_break (0); |
86 | *msg = GNUNET_strdup ("not implemented"); | 85 | *msg = GNUNET_strdup ("not implemented"); |
@@ -108,11 +107,11 @@ template_plugin_put (void *cls, | |||
108 | */ | 107 | */ |
109 | static void | 108 | static void |
110 | template_plugin_get_key (void *cls, | 109 | template_plugin_get_key (void *cls, |
111 | uint64_t offset, | 110 | uint64_t offset, |
112 | const GNUNET_HashCode * key, | 111 | const GNUNET_HashCode * key, |
113 | const GNUNET_HashCode * vhash, | 112 | const GNUNET_HashCode * vhash, |
114 | enum GNUNET_BLOCK_Type type, | 113 | enum GNUNET_BLOCK_Type type, |
115 | PluginDatumProcessor proc, void *proc_cls) | 114 | PluginDatumProcessor proc, void *proc_cls) |
116 | { | 115 | { |
117 | GNUNET_break (0); | 116 | GNUNET_break (0); |
118 | } | 117 | } |
@@ -132,7 +131,7 @@ template_plugin_get_key (void *cls, | |||
132 | */ | 131 | */ |
133 | static void | 132 | static void |
134 | template_plugin_get_replication (void *cls, | 133 | template_plugin_get_replication (void *cls, |
135 | PluginDatumProcessor proc, void *proc_cls) | 134 | PluginDatumProcessor proc, void *proc_cls) |
136 | { | 135 | { |
137 | GNUNET_break (0); | 136 | GNUNET_break (0); |
138 | } | 137 | } |
@@ -148,7 +147,7 @@ template_plugin_get_replication (void *cls, | |||
148 | */ | 147 | */ |
149 | static void | 148 | static void |
150 | template_plugin_get_expiration (void *cls, | 149 | template_plugin_get_expiration (void *cls, |
151 | PluginDatumProcessor proc, void *proc_cls) | 150 | PluginDatumProcessor proc, void *proc_cls) |
152 | { | 151 | { |
153 | GNUNET_break (0); | 152 | GNUNET_break (0); |
154 | } | 153 | } |
@@ -179,10 +178,9 @@ template_plugin_get_expiration (void *cls, | |||
179 | */ | 178 | */ |
180 | static int | 179 | static int |
181 | template_plugin_update (void *cls, | 180 | template_plugin_update (void *cls, |
182 | uint64_t uid, | 181 | uint64_t uid, |
183 | int delta, | 182 | int delta, |
184 | struct GNUNET_TIME_Absolute expire, | 183 | struct GNUNET_TIME_Absolute expire, char **msg) |
185 | char **msg) | ||
186 | { | 184 | { |
187 | GNUNET_break (0); | 185 | GNUNET_break (0); |
188 | *msg = GNUNET_strdup ("not implemented"); | 186 | *msg = GNUNET_strdup ("not implemented"); |
@@ -204,10 +202,9 @@ template_plugin_update (void *cls, | |||
204 | */ | 202 | */ |
205 | static void | 203 | static void |
206 | template_plugin_get_zero_anonymity (void *cls, | 204 | template_plugin_get_zero_anonymity (void *cls, |
207 | uint64_t offset, | 205 | uint64_t offset, |
208 | enum GNUNET_BLOCK_Type type, | 206 | enum GNUNET_BLOCK_Type type, |
209 | PluginDatumProcessor proc, | 207 | PluginDatumProcessor proc, void *proc_cls) |
210 | void *proc_cls) | ||
211 | { | 208 | { |
212 | GNUNET_break (0); | 209 | GNUNET_break (0); |
213 | } | 210 | } |
@@ -216,7 +213,7 @@ template_plugin_get_zero_anonymity (void *cls, | |||
216 | /** | 213 | /** |
217 | * Drop database. | 214 | * Drop database. |
218 | */ | 215 | */ |
219 | static void | 216 | static void |
220 | template_plugin_drop (void *cls) | 217 | template_plugin_drop (void *cls) |
221 | { | 218 | { |
222 | GNUNET_break (0); | 219 | GNUNET_break (0); |