aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_reclaim_plugin.h
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-04 23:34:10 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-02-09 20:38:10 +0100
commit5fb277e8d012d687f4d2d032571cd4b57946bbfb (patch)
tree2387ee8a40ef9d308e6d34ebd0f8af0dc90feb5f /src/include/gnunet_reclaim_plugin.h
parent065ecd9a0f92ecafd6c552494a6310b92cc08597 (diff)
downloadgnunet-5fb277e8d012d687f4d2d032571cd4b57946bbfb.tar.gz
gnunet-5fb277e8d012d687f4d2d032571cd4b57946bbfb.zip
towards better API
Diffstat (limited to 'src/include/gnunet_reclaim_plugin.h')
-rw-r--r--src/include/gnunet_reclaim_plugin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_reclaim_plugin.h b/src/include/gnunet_reclaim_plugin.h
index 4dd5252d2..ed62adf6c 100644
--- a/src/include/gnunet_reclaim_plugin.h
+++ b/src/include/gnunet_reclaim_plugin.h
@@ -165,6 +165,18 @@ typedef const char *(*GNUNET_RECLAIM_AttestationNumberToTypenameFunction) (
165 void *cls, 165 void *cls,
166 uint32_t type); 166 uint32_t type);
167 167
168/**
169 * Function called to convert a type number (i.e. 1) to the
170 * corresponding type string
171 *
172 * @param cls closure
173 * @param type number of a type to convert
174 * @return corresponding typestring, NULL on error
175 */
176typedef struct GNUNET_RECLAIM_AttributeList *(*GNUNET_RECLAIM_AttestationGetAttributesFunction) (
177 void *cls,
178 const struct GNUNET_RECLAIM_Attestation *attest);
179
168 180
169 181
170/** 182/**
@@ -231,6 +243,12 @@ struct GNUNET_RECLAIM_AttestationPluginFunctions
231 */ 243 */
232 GNUNET_RECLAIM_AttestationNumberToTypenameFunction number_to_typename; 244 GNUNET_RECLAIM_AttestationNumberToTypenameFunction number_to_typename;
233 245
246 /**
247 * Attesation attributes.
248 */
249 GNUNET_RECLAIM_AttestationGetAttributesFunction get_attributes;
250
251
234}; 252};
235 253
236 254