aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-01-06 00:09:40 +0000
committerGabor X Toth <*@tg-x.net>2014-01-06 00:09:40 +0000
commit43d497d7c4ebb6efae37ae4bb2f812a68aa64a32 (patch)
tree71e72ac7ec937d18259098b0ab8c2f35f9d14cbc /src/include
parentc04d45b9738e1764d2e2c21efdbeb129f298d5d1 (diff)
downloadgnunet-43d497d7c4ebb6efae37ae4bb2f812a68aa64a32.tar.gz
gnunet-43d497d7c4ebb6efae37ae4bb2f812a68aa64a32.zip
env: added head() and shift()
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_env_lib.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/include/gnunet_env_lib.h b/src/include/gnunet_env_lib.h
index 89101afc1..8ff37b7a7 100644
--- a/src/include/gnunet_env_lib.h
+++ b/src/include/gnunet_env_lib.h
@@ -153,9 +153,28 @@ GNUNET_ENV_environment_create ();
153 * @param value_size Size of @a value. 153 * @param value_size Size of @a value.
154 */ 154 */
155void 155void
156GNUNET_ENV_environment_add_mod (struct GNUNET_ENV_Environment *env, 156GNUNET_ENV_environment_add (struct GNUNET_ENV_Environment *env,
157 enum GNUNET_ENV_Operator oper, const char *name, 157 enum GNUNET_ENV_Operator oper, const char *name,
158 const void *value, size_t value_size); 158 const void *value, size_t value_size);
159
160
161
162/**
163 * Remove a modifier at the beginning of the environment.
164 */
165int
166GNUNET_ENV_environment_shift (struct GNUNET_ENV_Environment *env,
167 enum GNUNET_ENV_Operator *oper, const char **name,
168 const void **value, size_t *value_size);
169
170
171/**
172 * Get the modifier at the beginning of the environment.
173 */
174int
175GNUNET_ENV_environment_head (struct GNUNET_ENV_Environment *env,
176 enum GNUNET_ENV_Operator *oper, const char **name,
177 const void **value, size_t *value_size);
159 178
160 179
161/** 180/**
@@ -193,7 +212,7 @@ GNUNET_ENV_environment_iterate (const struct GNUNET_ENV_Environment *env,
193 * @return Number of modifiers. 212 * @return Number of modifiers.
194 */ 213 */
195size_t 214size_t
196GNUNET_ENV_environment_get_mod_count (const struct GNUNET_ENV_Environment *env); 215GNUNET_ENV_environment_get_count (const struct GNUNET_ENV_Environment *env);
197 216
198 217
199/** 218/**