diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-26 21:20:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-26 21:20:11 +0000 |
commit | 7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420 (patch) | |
tree | dc415457e57f9cfda58eb22ca400a941ebcf602e /src/include/gnunet_configuration_lib.h | |
parent | 4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff) | |
download | gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip |
const-ing of config-handles
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r-- | src/include/gnunet_configuration_lib.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 3f7d099ce..abbfe2eec 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h | |||
@@ -88,13 +88,13 @@ int GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
88 | * changed since the last save. | 88 | * changed since the last save. |
89 | * @return GNUNET_NO if clean, GNUNET_YES if dirty, GNUNET_SYSERR on error (i.e. last save failed) | 89 | * @return GNUNET_NO if clean, GNUNET_YES if dirty, GNUNET_SYSERR on error (i.e. last save failed) |
90 | */ | 90 | */ |
91 | int GNUNET_CONFIGURATION_is_dirty (struct GNUNET_CONFIGURATION_Handle *cfg); | 91 | int GNUNET_CONFIGURATION_is_dirty (const struct GNUNET_CONFIGURATION_Handle *cfg); |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Get a configuration value that should be a number. | 94 | * Get a configuration value that should be a number. |
95 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 95 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
96 | */ | 96 | */ |
97 | int GNUNET_CONFIGURATION_get_value_number (struct GNUNET_CONFIGURATION_Handle | 97 | int GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle |
98 | *cfg, const char *section, | 98 | *cfg, const char *section, |
99 | const char *option, | 99 | const char *option, |
100 | unsigned long long *number); | 100 | unsigned long long *number); |
@@ -105,7 +105,7 @@ int GNUNET_CONFIGURATION_get_value_number (struct GNUNET_CONFIGURATION_Handle | |||
105 | * @param time set to the time value stored in the configuration | 105 | * @param time set to the time value stored in the configuration |
106 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 106 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
107 | */ | 107 | */ |
108 | int GNUNET_CONFIGURATION_get_value_time (struct GNUNET_CONFIGURATION_Handle | 108 | int GNUNET_CONFIGURATION_get_value_time (const struct GNUNET_CONFIGURATION_Handle |
109 | *cfg, const char *section, | 109 | *cfg, const char *section, |
110 | const char *option, | 110 | const char *option, |
111 | struct GNUNET_TIME_Relative *time); | 111 | struct GNUNET_TIME_Relative *time); |
@@ -114,7 +114,7 @@ int GNUNET_CONFIGURATION_get_value_time (struct GNUNET_CONFIGURATION_Handle | |||
114 | * Test if we have a value for a particular option | 114 | * Test if we have a value for a particular option |
115 | * @return GNUNET_YES if so, GNUNET_NO if not. | 115 | * @return GNUNET_YES if so, GNUNET_NO if not. |
116 | */ | 116 | */ |
117 | int GNUNET_CONFIGURATION_have_value (struct GNUNET_CONFIGURATION_Handle *cfg, | 117 | int GNUNET_CONFIGURATION_have_value (const struct GNUNET_CONFIGURATION_Handle *cfg, |
118 | const char *section, const char *option); | 118 | const char *section, const char *option); |
119 | 119 | ||
120 | /** | 120 | /** |
@@ -123,7 +123,7 @@ int GNUNET_CONFIGURATION_have_value (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
123 | * value, or NULL if option is not specified | 123 | * value, or NULL if option is not specified |
124 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 124 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
125 | */ | 125 | */ |
126 | int GNUNET_CONFIGURATION_get_value_string (struct GNUNET_CONFIGURATION_Handle | 126 | int GNUNET_CONFIGURATION_get_value_string (const struct GNUNET_CONFIGURATION_Handle |
127 | *cfg, const char *section, | 127 | *cfg, const char *section, |
128 | const char *option, char **value); | 128 | const char *option, char **value); |
129 | 129 | ||
@@ -135,7 +135,7 @@ int GNUNET_CONFIGURATION_get_value_string (struct GNUNET_CONFIGURATION_Handle | |||
135 | * value, or NULL if option is not specified | 135 | * value, or NULL if option is not specified |
136 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 136 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
137 | */ | 137 | */ |
138 | int GNUNET_CONFIGURATION_get_value_filename (struct | 138 | int GNUNET_CONFIGURATION_get_value_filename (const struct |
139 | GNUNET_CONFIGURATION_Handle *cfg, | 139 | GNUNET_CONFIGURATION_Handle *cfg, |
140 | const char *section, | 140 | const char *section, |
141 | const char *option, | 141 | const char *option, |
@@ -146,7 +146,7 @@ int GNUNET_CONFIGURATION_get_value_filename (struct | |||
146 | * | 146 | * |
147 | * @return number of filenames iterated over, -1 on error | 147 | * @return number of filenames iterated over, -1 on error |
148 | */ | 148 | */ |
149 | int GNUNET_CONFIGURATION_iterate_value_filenames (struct | 149 | int GNUNET_CONFIGURATION_iterate_value_filenames (const struct |
150 | GNUNET_CONFIGURATION_Handle | 150 | GNUNET_CONFIGURATION_Handle |
151 | *cfg, | 151 | *cfg, |
152 | const char *section, | 152 | const char *section, |
@@ -163,7 +163,7 @@ int GNUNET_CONFIGURATION_iterate_value_filenames (struct | |||
163 | * or NULL if option is not specified and no default given | 163 | * or NULL if option is not specified and no default given |
164 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 164 | * @return GNUNET_OK on success, GNUNET_SYSERR on error |
165 | */ | 165 | */ |
166 | int GNUNET_CONFIGURATION_get_value_choice (struct GNUNET_CONFIGURATION_Handle | 166 | int GNUNET_CONFIGURATION_get_value_choice (const struct GNUNET_CONFIGURATION_Handle |
167 | *cfg, const char *section, | 167 | *cfg, const char *section, |
168 | const char *option, | 168 | const char *option, |
169 | const char **choices, | 169 | const char **choices, |
@@ -175,7 +175,7 @@ int GNUNET_CONFIGURATION_get_value_choice (struct GNUNET_CONFIGURATION_Handle | |||
175 | * | 175 | * |
176 | * @return GNUNET_YES, GNUNET_NO or if option has no valid value, GNUNET_SYSERR | 176 | * @return GNUNET_YES, GNUNET_NO or if option has no valid value, GNUNET_SYSERR |
177 | */ | 177 | */ |
178 | int GNUNET_CONFIGURATION_get_value_yesno (struct GNUNET_CONFIGURATION_Handle | 178 | int GNUNET_CONFIGURATION_get_value_yesno (const struct GNUNET_CONFIGURATION_Handle |
179 | *cfg, const char *section, | 179 | *cfg, const char *section, |
180 | const char *option); | 180 | const char *option); |
181 | 181 | ||
@@ -187,7 +187,7 @@ int GNUNET_CONFIGURATION_get_value_yesno (struct GNUNET_CONFIGURATION_Handle | |||
187 | * @param old string to $-expand (will be freed!) | 187 | * @param old string to $-expand (will be freed!) |
188 | * @return $-expanded string | 188 | * @return $-expanded string |
189 | */ | 189 | */ |
190 | char *GNUNET_CONFIGURATION_expand_dollar (struct GNUNET_CONFIGURATION_Handle | 190 | char *GNUNET_CONFIGURATION_expand_dollar (const struct GNUNET_CONFIGURATION_Handle |
191 | *cfg, char *old); | 191 | *cfg, char *old); |
192 | 192 | ||
193 | /** | 193 | /** |