diff options
Diffstat (limited to 'src/include/gnunet_gnsrecord_plugin.h')
-rw-r--r-- | src/include/gnunet_gnsrecord_plugin.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_gnsrecord_plugin.h b/src/include/gnunet_gnsrecord_plugin.h index aec22c3af..f55934b60 100644 --- a/src/include/gnunet_gnsrecord_plugin.h +++ b/src/include/gnunet_gnsrecord_plugin.h | |||
@@ -19,6 +19,9 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup GNS | ||
23 | * @{ | ||
24 | * | ||
22 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
23 | * | 26 | * |
24 | * @file | 27 | * @file |
@@ -105,6 +108,18 @@ typedef const char * | |||
105 | (*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, | 108 | (*GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, |
106 | uint32_t type); | 109 | uint32_t type); |
107 | 110 | ||
111 | /** | ||
112 | * Function called to check for critical records. | ||
113 | * | ||
114 | * @param cls closure | ||
115 | * @param type number of a type to check | ||
116 | * @return GNUNET_YES if critical, otherwise GNUNET_NO | ||
117 | */ | ||
118 | typedef enum GNUNET_GenericReturnValue | ||
119 | (*GNUNET_GNSRECORD_IsCriticalFunction) (void *cls, | ||
120 | uint32_t type); | ||
121 | |||
122 | |||
108 | 123 | ||
109 | /** | 124 | /** |
110 | * Each plugin is required to return a pointer to a struct of this | 125 | * Each plugin is required to return a pointer to a struct of this |
@@ -136,10 +151,17 @@ struct GNUNET_GNSRECORD_PluginFunctions | |||
136 | * Number to typename. | 151 | * Number to typename. |
137 | */ | 152 | */ |
138 | GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename; | 153 | GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename; |
154 | |||
155 | /** | ||
156 | * Is critical. | ||
157 | */ | ||
158 | GNUNET_GNSRECORD_IsCriticalFunction is_critical; | ||
139 | }; | 159 | }; |
140 | 160 | ||
141 | /** @} */ /* end of group */ | 161 | /** @} */ /* end of group */ |
142 | 162 | ||
163 | /** @} */ /* end of group addition */ | ||
164 | |||
143 | #if 0 /* keep Emacsens' auto-indent happy */ | 165 | #if 0 /* keep Emacsens' auto-indent happy */ |
144 | { | 166 | { |
145 | #endif | 167 | #endif |