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_lib.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/include/gnunet_datacache_lib.h')
-rw-r--r-- | src/include/gnunet_datacache_lib.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h index 568e60d42..19de3ceea 100644 --- a/src/include/gnunet_datacache_lib.h +++ b/src/include/gnunet_datacache_lib.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 |
@@ -63,8 +63,8 @@ struct GNUNET_DATACACHE_Handle; | |||
63 | * @return handle to use to access the service | 63 | * @return handle to use to access the service |
64 | */ | 64 | */ |
65 | struct GNUNET_DATACACHE_Handle * | 65 | struct GNUNET_DATACACHE_Handle * |
66 | GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | 66 | GNUNET_DATACACHE_create(const struct GNUNET_CONFIGURATION_Handle *cfg, |
67 | const char *section); | 67 | const char *section); |
68 | 68 | ||
69 | 69 | ||
70 | /** | 70 | /** |
@@ -73,7 +73,7 @@ GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
73 | * @param h handle to the datastore | 73 | * @param h handle to the datastore |
74 | */ | 74 | */ |
75 | void | 75 | void |
76 | GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); | 76 | GNUNET_DATACACHE_destroy(struct GNUNET_DATACACHE_Handle *h); |
77 | 77 | ||
78 | 78 | ||
79 | /** | 79 | /** |
@@ -115,15 +115,15 @@ typedef int | |||
115 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error, #GNUNET_NO if duplicate | 115 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error, #GNUNET_NO if duplicate |
116 | */ | 116 | */ |
117 | int | 117 | int |
118 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | 118 | GNUNET_DATACACHE_put(struct GNUNET_DATACACHE_Handle *h, |
119 | const struct GNUNET_HashCode *key, | 119 | const struct GNUNET_HashCode *key, |
120 | uint32_t xor_distance, | 120 | uint32_t xor_distance, |
121 | size_t data_size, | 121 | size_t data_size, |
122 | const char *data, | 122 | const char *data, |
123 | enum GNUNET_BLOCK_Type type, | 123 | enum GNUNET_BLOCK_Type type, |
124 | struct GNUNET_TIME_Absolute discard_time, | 124 | struct GNUNET_TIME_Absolute discard_time, |
125 | unsigned int path_info_len, | 125 | unsigned int path_info_len, |
126 | const struct GNUNET_PeerIdentity *path_info); | 126 | const struct GNUNET_PeerIdentity *path_info); |
127 | 127 | ||
128 | 128 | ||
129 | /** | 129 | /** |
@@ -138,11 +138,11 @@ GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | |||
138 | * @return the number of results found | 138 | * @return the number of results found |
139 | */ | 139 | */ |
140 | unsigned int | 140 | unsigned int |
141 | GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, | 141 | GNUNET_DATACACHE_get(struct GNUNET_DATACACHE_Handle *h, |
142 | const struct GNUNET_HashCode *key, | 142 | const struct GNUNET_HashCode *key, |
143 | enum GNUNET_BLOCK_Type type, | 143 | enum GNUNET_BLOCK_Type type, |
144 | GNUNET_DATACACHE_Iterator iter, | 144 | GNUNET_DATACACHE_Iterator iter, |
145 | void *iter_cls); | 145 | void *iter_cls); |
146 | 146 | ||
147 | 147 | ||
148 | /** | 148 | /** |
@@ -154,9 +154,9 @@ GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, | |||
154 | * @return the number of results found (zero or 1) | 154 | * @return the number of results found (zero or 1) |
155 | */ | 155 | */ |
156 | unsigned int | 156 | unsigned int |
157 | GNUNET_DATACACHE_get_random (struct GNUNET_DATACACHE_Handle *h, | 157 | GNUNET_DATACACHE_get_random(struct GNUNET_DATACACHE_Handle *h, |
158 | GNUNET_DATACACHE_Iterator iter, | 158 | GNUNET_DATACACHE_Iterator iter, |
159 | void *iter_cls); | 159 | void *iter_cls); |
160 | 160 | ||
161 | 161 | ||
162 | /** | 162 | /** |
@@ -173,11 +173,11 @@ GNUNET_DATACACHE_get_random (struct GNUNET_DATACACHE_Handle *h, | |||
173 | * @return the number of results found | 173 | * @return the number of results found |
174 | */ | 174 | */ |
175 | unsigned int | 175 | unsigned int |
176 | GNUNET_DATACACHE_get_closest (struct GNUNET_DATACACHE_Handle *h, | 176 | GNUNET_DATACACHE_get_closest(struct GNUNET_DATACACHE_Handle *h, |
177 | const struct GNUNET_HashCode *key, | 177 | const struct GNUNET_HashCode *key, |
178 | unsigned int num_results, | 178 | unsigned int num_results, |
179 | GNUNET_DATACACHE_Iterator iter, | 179 | GNUNET_DATACACHE_Iterator iter, |
180 | void *iter_cls); | 180 | void *iter_cls); |
181 | 181 | ||
182 | 182 | ||
183 | #if 0 /* keep Emacsens' auto-indent happy */ | 183 | #if 0 /* keep Emacsens' auto-indent happy */ |