aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h9
-rw-r--r--src/include/gnunet_gnsrecord_plugin.h17
2 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index fdbac3cf5..2b2bd4952 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -700,6 +700,15 @@ GNUNET_GNSRECORD_data_from_identity (const struct
700enum GNUNET_GenericReturnValue 700enum GNUNET_GenericReturnValue
701GNUNET_GNSRECORD_is_zonekey_type (uint32_t type); 701GNUNET_GNSRECORD_is_zonekey_type (uint32_t type);
702 702
703/**
704 * Check if this type is a critical record.
705 *
706 * @param type the type to check
707 * @return GNUNET_YES if it is critical.
708 */
709enum GNUNET_GenericReturnValue
710GNUNET_GNSRECORD_is_critical (uint32_t type);
711
703 712
704#if 0 /* keep Emacsens' auto-indent happy */ 713#if 0 /* keep Emacsens' auto-indent happy */
705{ 714{
diff --git a/src/include/gnunet_gnsrecord_plugin.h b/src/include/gnunet_gnsrecord_plugin.h
index aec22c3af..84b7c3c23 100644
--- a/src/include/gnunet_gnsrecord_plugin.h
+++ b/src/include/gnunet_gnsrecord_plugin.h
@@ -105,6 +105,18 @@ typedef 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/**
109 * Function called to check for critical records.
110 *
111 * @param cls closure
112 * @param type number of a type to check
113 * @return GNUNET_YES if critical, otherwise GNUNET_NO
114 */
115typedef enum GNUNET_GenericReturnValue
116(*GNUNET_GNSRECORD_IsCriticalFunction) (void *cls,
117 uint32_t type);
118
119
108 120
109/** 121/**
110 * Each plugin is required to return a pointer to a struct of this 122 * Each plugin is required to return a pointer to a struct of this
@@ -136,6 +148,11 @@ struct GNUNET_GNSRECORD_PluginFunctions
136 * Number to typename. 148 * Number to typename.
137 */ 149 */
138 GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename; 150 GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename;
151
152 /**
153 * Is critical.
154 */
155 GNUNET_GNSRECORD_IsCriticalFunction is_critical;
139}; 156};
140 157
141/** @} */ /* end of group */ 158/** @} */ /* end of group */