aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_env_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_env_lib.h')
-rw-r--r--src/include/gnunet_env_lib.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/include/gnunet_env_lib.h b/src/include/gnunet_env_lib.h
index b441c0252..bde21eaac 100644
--- a/src/include/gnunet_env_lib.h
+++ b/src/include/gnunet_env_lib.h
@@ -20,8 +20,8 @@
20 20
21/** 21/**
22 * @file include/gnunet_env_lib.h 22 * @file include/gnunet_env_lib.h
23 * @brief Library providing operations for the @e environment of PSYC and Social messages, 23 * @brief Library providing operations for the @e environment of
24 * and for (de)serializing variable values. 24 * PSYC and Social messages, and for (de)serializing variable values.
25 * @author Gabor X Toth 25 * @author Gabor X Toth
26 */ 26 */
27 27
@@ -144,28 +144,31 @@ GNUNET_ENV_environment_operation (struct GNUNET_ENV_Environment *env,
144/** 144/**
145 * Get all modifiers in the environment. 145 * Get all modifiers in the environment.
146 * 146 *
147 * FIXME: use an iterator instead, as we'll likely use a SList to store the
148 * modifiers in the environment.
149 *
147 * @param env The environment. 150 * @param env The environment.
148 * @param[out] modifiers_length Set to the number of returned modifiers. 151 * @param[out] modifier_count Set to the number of returned modifiers.
149 * 152 *
150 * @return Array of modifiers. 153 * @return Array of modifiers.
151 */ 154 */
152const struct GNUNET_ENV_Modifier * 155const struct GNUNET_ENV_Modifier *
153GNUNET_ENV_environment_get_modifiers (const struct GNUNET_ENV_Environment *env, 156GNUNET_ENV_environment_get_modifiers (const struct GNUNET_ENV_Environment *env,
154 size_t *modifiers_length); 157 size_t *modifier_count);
155 158
156 159
157/** 160/**
158 * Add list of modifiers to the environment. 161 * Add list of modifiers to the environment.
159 * 162 *
160 * @param env The environment. 163 * @param env The environment.
161 * @param modifiers_length Number of @a modifiers. 164 * @param modifier_count Number of @a modifiers.
162 * @param modifiers Array of modifiers to add. 165 * @param modifiers Array of modifiers to add.
163 * 166 *
164 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error. 167 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error.
165 */ 168 */
166int 169int
167GNUNET_ENV_environment_set_modifiers (const struct GNUNET_ENV_Environment *env, 170GNUNET_ENV_environment_set_modifiers (const struct GNUNET_ENV_Environment *env,
168 size_t modifiers_length, 171 size_t modifier_count,
169 const struct GNUNET_ENV_Modifier *modifiers); 172 const struct GNUNET_ENV_Modifier *modifiers);
170 173
171 174