diff options
Diffstat (limited to 'src/setup/gnunet-setup-options.h')
-rw-r--r-- | src/setup/gnunet-setup-options.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/setup/gnunet-setup-options.h b/src/setup/gnunet-setup-options.h index 31727d30..c1dbf44b 100644 --- a/src/setup/gnunet-setup-options.h +++ b/src/setup/gnunet-setup-options.h | |||
@@ -65,6 +65,17 @@ typedef int (*GNUNET_SETUP_SaveFunction) (const void *cls, const char *section, | |||
65 | 65 | ||
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Function called each time the widget changes its state to validate | ||
69 | * its value. | ||
70 | * | ||
71 | * @param cls closure | ||
72 | * @param widget widget whose state was changed | ||
73 | */ | ||
74 | typedef void (*GNUNET_SETUP_InputValidationFunction) (const void *cls, | ||
75 | GObject *widget); | ||
76 | |||
77 | |||
78 | /** | ||
68 | * Structs of this type specify under which conditions the values of | 79 | * Structs of this type specify under which conditions the values of |
69 | * a particular option impact the visibility (or sensitivity) of some | 80 | * a particular option impact the visibility (or sensitivity) of some |
70 | * other widget. | 81 | * other widget. |
@@ -143,6 +154,16 @@ struct GNUNET_SETUP_OptionSpecification | |||
143 | const void *load_save_cls; | 154 | const void *load_save_cls; |
144 | 155 | ||
145 | /** | 156 | /** |
157 | * Function to call to validate the value of the widget. | ||
158 | */ | ||
159 | GNUNET_SETUP_InputValidationFunction input_validation_function; | ||
160 | |||
161 | /** | ||
162 | * Closure for 'input_validation_function'. | ||
163 | */ | ||
164 | const void *input_validation_function_cls; | ||
165 | |||
166 | /** | ||
146 | * Visibility changes to apply if this option changes (NULL, or | 167 | * Visibility changes to apply if this option changes (NULL, or |
147 | * NULL-terminated). | 168 | * NULL-terminated). |
148 | */ | 169 | */ |