summaryrefslogtreecommitdiff
path: root/src/include/gnunet_block_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_block_plugin.h')
-rw-r--r--src/include/gnunet_block_plugin.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/include/gnunet_block_plugin.h b/src/include/gnunet_block_plugin.h
index f0438c82f..025d33c45 100644
--- a/src/include/gnunet_block_plugin.h
+++ b/src/include/gnunet_block_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
@@ -97,9 +97,7 @@ typedef void
97 * Block group data. The plugin must initialize the callbacks 97 * Block group data. The plugin must initialize the callbacks
98 * and can use the @e internal_cls as it likes. 98 * and can use the @e internal_cls as it likes.
99 */ 99 */
100struct GNUNET_BLOCK_Group 100struct GNUNET_BLOCK_Group {
101{
102
103 /** 101 /**
104 * Context owning the block group. Set by the main block library. 102 * Context owning the block group. Set by the main block library.
105 */ 103 */
@@ -138,7 +136,6 @@ struct GNUNET_BLOCK_Group
138 * Internal data structure of the plugin. 136 * Internal data structure of the plugin.
139 */ 137 */
140 void *internal_cls; 138 void *internal_cls;
141
142}; 139};
143 140
144 141
@@ -183,16 +180,16 @@ typedef struct GNUNET_BLOCK_Group *
183 * @return characterization of result 180 * @return characterization of result
184 */ 181 */
185typedef enum GNUNET_BLOCK_EvaluationResult 182typedef enum GNUNET_BLOCK_EvaluationResult
186(*GNUNET_BLOCK_EvaluationFunction) (void *cls, 183(*GNUNET_BLOCK_EvaluationFunction)(void *cls,
187 struct GNUNET_BLOCK_Context *ctx, 184 struct GNUNET_BLOCK_Context *ctx,
188 enum GNUNET_BLOCK_Type type, 185 enum GNUNET_BLOCK_Type type,
189 struct GNUNET_BLOCK_Group *group, 186 struct GNUNET_BLOCK_Group *group,
190 enum GNUNET_BLOCK_EvaluationOptions eo, 187 enum GNUNET_BLOCK_EvaluationOptions eo,
191 const struct GNUNET_HashCode *query, 188 const struct GNUNET_HashCode *query,
192 const void *xquery, 189 const void *xquery,
193 size_t xquery_size, 190 size_t xquery_size,
194 const void *reply_block, 191 const void *reply_block,
195 size_t reply_block_size); 192 size_t reply_block_size);
196 193
197 194
198/** 195/**
@@ -221,9 +218,7 @@ typedef int
221 * Each plugin is required to return a pointer to a struct of this 218 * Each plugin is required to return a pointer to a struct of this
222 * type as the return value from its entry point. 219 * type as the return value from its entry point.
223 */ 220 */
224struct GNUNET_BLOCK_PluginFunctions 221struct GNUNET_BLOCK_PluginFunctions {
225{
226
227 /** 222 /**
228 * Closure for all of the callbacks. 223 * Closure for all of the callbacks.
229 */ 224 */