diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/include/gnunet_datacache_plugin.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/include/gnunet_datacache_plugin.h')
-rw-r--r-- | src/include/gnunet_datacache_plugin.h | 22 |
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 | */ |
64 | struct GNUNET_DATACACHE_PluginEnvironment | 64 | struct 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 | */ |
99 | struct GNUNET_DATACACHE_PluginFunctions | 96 | struct 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 | ||