diff options
Diffstat (limited to 'src/datacache/plugin_datacache_template.c')
-rw-r--r-- | src/datacache/plugin_datacache_template.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/datacache/plugin_datacache_template.c b/src/datacache/plugin_datacache_template.c index 2f7b41dbe..1bd712d39 100644 --- a/src/datacache/plugin_datacache_template.c +++ b/src/datacache/plugin_datacache_template.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | Copyright (C) 2006, 2009, 2015 GNUnet e.V. | 3 | Copyright (C) 2006, 2009, 2015, 2022 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -44,26 +44,14 @@ struct Plugin | |||
44 | * Store an item in the datastore. | 44 | * Store an item in the datastore. |
45 | * | 45 | * |
46 | * @param cls closure (our `struct Plugin`) | 46 | * @param cls closure (our `struct Plugin`) |
47 | * @param key key to store @a data under | ||
48 | * @param xor_distance distance of @a key to our PID | 47 | * @param xor_distance distance of @a key to our PID |
49 | * @param size number of bytes in @a data | 48 | * @param block data to store |
50 | * @param data data to store | ||
51 | * @param type type of the value | ||
52 | * @param discard_time when to discard the value in any case | ||
53 | * @param path_info_len number of entries in @a path_info | ||
54 | * @param path_info a path through the network | ||
55 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise | 49 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise |
56 | */ | 50 | */ |
57 | static ssize_t | 51 | static ssize_t |
58 | template_plugin_put (void *cls, | 52 | template_plugin_put (void *cls, |
59 | const struct GNUNET_HashCode *key, | ||
60 | uint32_t xor_distance, | 53 | uint32_t xor_distance, |
61 | size_t size, | 54 | const struct GNUNET_DATACACHE_Block *block) |
62 | const char *data, | ||
63 | enum GNUNET_BLOCK_Type type, | ||
64 | struct GNUNET_TIME_Absolute discard_time, | ||
65 | unsigned int path_info_len, | ||
66 | const struct GNUNET_DHT_PathElement *path_info) | ||
67 | { | 55 | { |
68 | GNUNET_break (0); | 56 | GNUNET_break (0); |
69 | return -1; | 57 | return -1; |
@@ -100,7 +88,7 @@ template_plugin_get (void *cls, | |||
100 | * @param cls closure (our `struct Plugin`) | 88 | * @param cls closure (our `struct Plugin`) |
101 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 89 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
102 | */ | 90 | */ |
103 | static int | 91 | static enum GNUNET_GenericReturnValue |
104 | template_plugin_del (void *cls) | 92 | template_plugin_del (void *cls) |
105 | { | 93 | { |
106 | GNUNET_break (0); | 94 | GNUNET_break (0); |