summaryrefslogtreecommitdiff
path: root/src/include/gnunet_datacache_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_datacache_plugin.h')
-rw-r--r--src/include/gnunet_datacache_plugin.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h
index 5a4e6dc0d..b4e6dbe8e 100644
--- a/src/include/gnunet_datacache_plugin.h
+++ b/src/include/gnunet_datacache_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
@@ -61,9 +61,7 @@ typedef void
61 * of this type as the first and only argument to the 61 * of this type as the first and only argument to the
62 * entry point of each datastore plugin. 62 * entry point of each datastore plugin.
63 */ 63 */
64struct GNUNET_DATACACHE_PluginEnvironment 64struct GNUNET_DATACACHE_PluginEnvironment {
65{
66
67 /** 65 /**
68 * Configuration to use. 66 * Configuration to use.
69 */ 67 */
@@ -89,16 +87,13 @@ struct GNUNET_DATACACHE_PluginEnvironment
89 * How much space are we allowed to use? 87 * How much space are we allowed to use?
90 */ 88 */
91 unsigned long long quota; 89 unsigned long long quota;
92
93}; 90};
94 91
95 92
96/** 93/**
97 * @brief struct returned by the initialization function of the plugin 94 * @brief struct returned by the initialization function of the plugin
98 */ 95 */
99struct GNUNET_DATACACHE_PluginFunctions 96struct GNUNET_DATACACHE_PluginFunctions {
100{
101
102 /** 97 /**
103 * Closure to pass to all plugin functions. 98 * Closure to pass to all plugin functions.
104 */ 99 */
@@ -122,11 +117,11 @@ struct GNUNET_DATACACHE_PluginFunctions
122 const struct GNUNET_HashCode *key, 117 const struct GNUNET_HashCode *key,
123 uint32_t xor_distance, 118 uint32_t xor_distance,
124 size_t size, 119 size_t size,
125 const char *data, 120 const char *data,
126 enum GNUNET_BLOCK_Type type, 121 enum GNUNET_BLOCK_Type type,
127 struct GNUNET_TIME_Absolute discard_time, 122 struct GNUNET_TIME_Absolute discard_time,
128 unsigned int path_info_len, 123 unsigned int path_info_len,
129 const struct GNUNET_PeerIdentity *path_info); 124 const struct GNUNET_PeerIdentity *path_info);
130 125
131 /** 126 /**
132 * Iterate over the results for a particular key 127 * Iterate over the results for a particular key
@@ -185,7 +180,6 @@ struct GNUNET_DATACACHE_PluginFunctions
185 unsigned int num_results, 180 unsigned int num_results,
186 GNUNET_DATACACHE_Iterator iter, 181 GNUNET_DATACACHE_Iterator iter,
187 void *iter_cls); 182 void *iter_cls);
188
189}; 183};
190 184
191 185