aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-10 13:02:28 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-10 13:02:51 +0200
commit0cd0e3a5287af73bb81219ebc9548395a8945ce8 (patch)
treeb5bb24d78a4eed519b37e6fb8f9291a6282d06d4 /src/include/gnunet_gnsrecord_plugin.h
parent3eae3e43d6f94449cb89998a676e6696438cc604 (diff)
downloadgnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.tar.gz
gnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.zip
more work on gnunet-zoneimport, some bugfix in flat namestore, misc. style fixes
Diffstat (limited to 'src/include/gnunet_gnsrecord_plugin.h')
-rw-r--r--src/include/gnunet_gnsrecord_plugin.h30
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 */
56typedef char * (*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls, 56typedef 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 */
74typedef int (*GNUNET_GNSRECORD_StringToValueFunction) (void *cls, 75typedef 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 */
89typedef uint32_t (*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, 91typedef 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 */
101typedef const char * (*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, 104typedef const char *
102 uint32_t type); 105(*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls,
106 uint32_t type);
103 107
104 108
105/** 109/**