diff options
author | Gabor X Toth <*@tg-x.net> | 2014-05-29 16:35:53 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-05-29 16:35:53 +0000 |
commit | a5877668ba805c5e0efe622e6ce4c58ff5609bf9 (patch) | |
tree | 5560a9107d5add87388ac8900184f621050fa514 /src/include/gnunet_env_lib.h | |
parent | 0a3564262a17b8e0dddb553c31bb783c99ee1ec1 (diff) | |
download | gnunet-a5877668ba805c5e0efe622e6ce4c58ff5609bf9.tar.gz gnunet-a5877668ba805c5e0efe622e6ce4c58ff5609bf9.zip |
PSYC util lib: receiving/transmitting/logging PSYC messages
Diffstat (limited to 'src/include/gnunet_env_lib.h')
-rw-r--r-- | src/include/gnunet_env_lib.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/include/gnunet_env_lib.h b/src/include/gnunet_env_lib.h index 5d1d013a3..85197a7e7 100644 --- a/src/include/gnunet_env_lib.h +++ b/src/include/gnunet_env_lib.h | |||
@@ -159,23 +159,36 @@ GNUNET_ENV_environment_add (struct GNUNET_ENV_Environment *env, | |||
159 | const void *value, size_t value_size); | 159 | const void *value, size_t value_size); |
160 | 160 | ||
161 | 161 | ||
162 | /** | ||
163 | * Get the first modifier of the environment. | ||
164 | */ | ||
165 | struct GNUNET_ENV_Modifier * | ||
166 | GNUNET_ENV_environment_head (const struct GNUNET_ENV_Environment *env); | ||
167 | |||
168 | |||
162 | 169 | ||
163 | /** | 170 | /** |
164 | * Remove a modifier at the beginning of the environment. | 171 | * Get the last modifier of the environment. |
165 | */ | 172 | */ |
166 | int | 173 | struct GNUNET_ENV_Modifier * |
167 | GNUNET_ENV_environment_shift (struct GNUNET_ENV_Environment *env, | 174 | GNUNET_ENV_environment_tail (const struct GNUNET_ENV_Environment *env); |
168 | enum GNUNET_ENV_Operator *oper, const char **name, | 175 | |
169 | const void **value, size_t *value_size); | 176 | |
177 | /** | ||
178 | * Remove a modifier from the environment. | ||
179 | */ | ||
180 | void | ||
181 | GNUNET_ENV_environment_remove (struct GNUNET_ENV_Environment *env, | ||
182 | struct GNUNET_ENV_Modifier *mod); | ||
170 | 183 | ||
171 | 184 | ||
172 | /** | 185 | /** |
173 | * Get the modifier at the beginning of the environment. | 186 | * Remove a modifier at the beginning of the environment. |
174 | */ | 187 | */ |
175 | int | 188 | int |
176 | GNUNET_ENV_environment_head (struct GNUNET_ENV_Environment *env, | 189 | GNUNET_ENV_environment_shift (struct GNUNET_ENV_Environment *env, |
177 | enum GNUNET_ENV_Operator *oper, const char **name, | 190 | enum GNUNET_ENV_Operator *oper, const char **name, |
178 | const void **value, size_t *value_size); | 191 | const void **value, size_t *value_size); |
179 | 192 | ||
180 | 193 | ||
181 | /** | 194 | /** |