diff options
Diffstat (limited to 'src/include/gnunet_gnsrecord_plugin.h')
-rw-r--r-- | src/include/gnunet_gnsrecord_plugin.h | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/include/gnunet_gnsrecord_plugin.h b/src/include/gnunet_gnsrecord_plugin.h index d212c3663..e3e1a98eb 100644 --- a/src/include/gnunet_gnsrecord_plugin.h +++ b/src/include/gnunet_gnsrecord_plugin.h | |||
@@ -53,10 +53,11 @@ extern "C" | |||
53 | * @param data_size number of bytes in @a data | 53 | * @param data_size number of bytes in @a data |
54 | * @return NULL on error, otherwise human-readable representation of the value | 54 | * @return NULL on error, otherwise human-readable representation of the value |
55 | */ | 55 | */ |
56 | typedef char * (*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls, | 56 | typedef char * |
57 | uint32_t type, | 57 | (*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls, |
58 | const void *data, | 58 | uint32_t type, |
59 | size_t data_size); | 59 | const void *data, |
60 | size_t data_size); | ||
60 | 61 | ||
61 | 62 | ||
62 | /** | 63 | /** |
@@ -71,11 +72,12 @@ typedef char * (*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls, | |||
71 | * @param data_size set to number of bytes in @a data | 72 | * @param data_size set to number of bytes in @a data |
72 | * @return #GNUNET_OK on success | 73 | * @return #GNUNET_OK on success |
73 | */ | 74 | */ |
74 | typedef int (*GNUNET_GNSRECORD_StringToValueFunction) (void *cls, | 75 | typedef int |
75 | uint32_t type, | 76 | (*GNUNET_GNSRECORD_StringToValueFunction) (void *cls, |
76 | const char *s, | 77 | uint32_t type, |
77 | void **data, | 78 | const char *s, |
78 | size_t *data_size); | 79 | void **data, |
80 | size_t *data_size); | ||
79 | 81 | ||
80 | 82 | ||
81 | /** | 83 | /** |
@@ -86,8 +88,9 @@ typedef int (*GNUNET_GNSRECORD_StringToValueFunction) (void *cls, | |||
86 | * @param dns_typename name to convert | 88 | * @param dns_typename name to convert |
87 | * @return corresponding number, UINT32_MAX on error | 89 | * @return corresponding number, UINT32_MAX on error |
88 | */ | 90 | */ |
89 | typedef uint32_t (*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, | 91 | typedef uint32_t |
90 | const char *dns_typename); | 92 | (*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, |
93 | const char *dns_typename); | ||
91 | 94 | ||
92 | 95 | ||
93 | /** | 96 | /** |
@@ -98,8 +101,9 @@ typedef uint32_t (*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, | |||
98 | * @param type number of a type to convert | 101 | * @param type number of a type to convert |
99 | * @return corresponding typestring, NULL on error | 102 | * @return corresponding typestring, NULL on error |
100 | */ | 103 | */ |
101 | typedef const char * (*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, | 104 | typedef const char * |
102 | uint32_t type); | 105 | (*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, |
106 | uint32_t type); | ||
103 | 107 | ||
104 | 108 | ||
105 | /** | 109 | /** |