summaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gnsrecord_plugin.h')
-rw-r--r--src/include/gnunet_gnsrecord_plugin.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/include/gnunet_gnsrecord_plugin.h b/src/include/gnunet_gnsrecord_plugin.h
index cc10e3e7f..7ce1b22e6 100644
--- a/src/include/gnunet_gnsrecord_plugin.h
+++ b/src/include/gnunet_gnsrecord_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
@@ -55,9 +55,9 @@ extern "C"
55 */ 55 */
56typedef char * 56typedef char *
57(*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls, 57(*GNUNET_GNSRECORD_ValueToStringFunction) (void *cls,
58 uint32_t type, 58 uint32_t type,
59 const void *data, 59 const void *data,
60 size_t data_size); 60 size_t data_size);
61 61
62 62
63/** 63/**
@@ -74,10 +74,10 @@ typedef char *
74 */ 74 */
75typedef int 75typedef int
76(*GNUNET_GNSRECORD_StringToValueFunction) (void *cls, 76(*GNUNET_GNSRECORD_StringToValueFunction) (void *cls,
77 uint32_t type, 77 uint32_t type,
78 const char *s, 78 const char *s,
79 void **data, 79 void **data,
80 size_t *data_size); 80 size_t *data_size);
81 81
82 82
83/** 83/**
@@ -90,7 +90,7 @@ typedef int
90 */ 90 */
91typedef uint32_t 91typedef uint32_t
92(*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, 92(*GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls,
93 const char *dns_typename); 93 const char *dns_typename);
94 94
95 95
96/** 96/**
@@ -103,16 +103,14 @@ typedef uint32_t
103 */ 103 */
104typedef const char * 104typedef const char *
105(*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, 105(*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls,
106 uint32_t type); 106 uint32_t type);
107 107
108 108
109/** 109/**
110 * Each plugin is required to return a pointer to a struct of this 110 * Each plugin is required to return a pointer to a struct of this
111 * type as the return value from its entry point. 111 * type as the return value from its entry point.
112 */ 112 */
113struct GNUNET_GNSRECORD_PluginFunctions 113struct GNUNET_GNSRECORD_PluginFunctions {
114{
115
116 /** 114 /**
117 * Closure for all of the callbacks. 115 * Closure for all of the callbacks.
118 */ 116 */
@@ -137,7 +135,6 @@ struct GNUNET_GNSRECORD_PluginFunctions
137 * Number to typename. 135 * Number to typename.
138 */ 136 */
139 GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename; 137 GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename;
140
141}; 138};
142 139
143/** @} */ /* end of group */ 140/** @} */ /* end of group */