summaryrefslogtreecommitdiff
path: root/src/include/gnunet_datastore_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_datastore_plugin.h')
-rw-r--r--src/include/gnunet_datastore_plugin.h34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/include/gnunet_datastore_plugin.h b/src/include/gnunet_datastore_plugin.h
index ccd604845..95b12f7ad 100644
--- a/src/include/gnunet_datastore_plugin.h
+++ b/src/include/gnunet_datastore_plugin.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19 */
20 20
21/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -55,7 +55,7 @@
55 */ 55 */
56typedef void 56typedef void
57(*GNUNET_DATASTORE_DiskUtilizationChange) (void *cls, 57(*GNUNET_DATASTORE_DiskUtilizationChange) (void *cls,
58 int delta); 58 int delta);
59 59
60 60
61/** 61/**
@@ -63,8 +63,7 @@ typedef void
63 * of this type as the first and only argument to the 63 * of this type as the first and only argument to the
64 * entry point of each datastore plugin. 64 * entry point of each datastore plugin.
65 */ 65 */
66struct GNUNET_DATASTORE_PluginEnvironment 66struct GNUNET_DATASTORE_PluginEnvironment {
67{
68 /** 67 /**
69 * Configuration to use. 68 * Configuration to use.
70 */ 69 */
@@ -79,7 +78,6 @@ struct GNUNET_DATASTORE_PluginEnvironment
79 * Closure. 78 * Closure.
80 */ 79 */
81 void *cls; 80 void *cls;
82
83}; 81};
84 82
85 83
@@ -125,7 +123,7 @@ typedef int
125 */ 123 */
126typedef void 124typedef void
127(*PluginEstimateSize) (void *cls, 125(*PluginEstimateSize) (void *cls,
128 unsigned long long *estimate); 126 unsigned long long *estimate);
129 127
130 128
131/** 129/**
@@ -140,10 +138,10 @@ typedef void
140 */ 138 */
141typedef void 139typedef void
142(*PluginPutCont) (void *cls, 140(*PluginPutCont) (void *cls,
143 const struct GNUNET_HashCode *key, 141 const struct GNUNET_HashCode *key,
144 uint32_t size, 142 uint32_t size,
145 int status, 143 int status,
146 const char *msg); 144 const char *msg);
147 145
148 146
149/** 147/**
@@ -188,8 +186,8 @@ typedef void
188 */ 186 */
189typedef void 187typedef void
190(*PluginKeyProcessor) (void *cls, 188(*PluginKeyProcessor) (void *cls,
191 const struct GNUNET_HashCode *key, 189 const struct GNUNET_HashCode *key,
192 unsigned int count); 190 unsigned int count);
193 191
194 192
195/** 193/**
@@ -201,7 +199,7 @@ typedef void
201 */ 199 */
202typedef void 200typedef void
203(*PluginGetKeys) (void *cls, 201(*PluginGetKeys) (void *cls,
204 PluginKeyProcessor proc, 202 PluginKeyProcessor proc,
205 void *proc_cls); 203 void *proc_cls);
206 204
207 205
@@ -277,8 +275,8 @@ typedef void
277 */ 275 */
278typedef void 276typedef void
279(*PluginGetRandom) (void *cls, 277(*PluginGetRandom) (void *cls,
280 PluginDatumProcessor proc, 278 PluginDatumProcessor proc,
281 void *proc_cls); 279 void *proc_cls);
282 280
283 281
284/** 282/**
@@ -313,9 +311,7 @@ typedef void
313 * Each plugin is required to return a pointer to a struct of this 311 * Each plugin is required to return a pointer to a struct of this
314 * type as the return value from its entry point. 312 * type as the return value from its entry point.
315 */ 313 */
316struct GNUNET_DATASTORE_PluginFunctions 314struct GNUNET_DATASTORE_PluginFunctions {
317{
318
319 /** 315 /**
320 * Closure to use for all of the following callbacks 316 * Closure to use for all of the following callbacks
321 * (except "next_request"). 317 * (except "next_request").