aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-02-21 13:41:26 +0000
committerGabor X Toth <*@tg-x.net>2016-02-21 13:41:26 +0000
commit9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d (patch)
tree46b45f3af6e3f5af3703a6c95ffc53bf871c4775 /src
parent7ba7524b484e4c3efebb075ad53b96a9b64efa0a (diff)
downloadgnunet-9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d.tar.gz
gnunet-9b8f3b8f3553b5b2f67cd14ad9a4f431f98d505d.zip
indent
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_psyc_env.h20
-rw-r--r--src/psycutil/psyc_env.c12
2 files changed, 16 insertions, 16 deletions
diff --git a/src/include/gnunet_psyc_env.h b/src/include/gnunet_psyc_env.h
index 86562900c..0b319e6ef 100644
--- a/src/include/gnunet_psyc_env.h
+++ b/src/include/gnunet_psyc_env.h
@@ -163,8 +163,8 @@ GNUNET_PSYC_env_create ();
163 */ 163 */
164void 164void
165GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, 165GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env,
166 enum GNUNET_PSYC_Operator oper, const char *name, 166 enum GNUNET_PSYC_Operator oper, const char *name,
167 const void *value, size_t value_size); 167 const void *value, size_t value_size);
168 168
169 169
170/** 170/**
@@ -187,7 +187,7 @@ GNUNET_PSYC_env_tail (const struct GNUNET_PSYC_Environment *env);
187 */ 187 */
188void 188void
189GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, 189GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
190 struct GNUNET_PSYC_Modifier *mod); 190 struct GNUNET_PSYC_Modifier *mod);
191 191
192 192
193/** 193/**
@@ -195,8 +195,8 @@ GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
195 */ 195 */
196int 196int
197GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, 197GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
198 enum GNUNET_PSYC_Operator *oper, const char **name, 198 enum GNUNET_PSYC_Operator *oper, const char **name,
199 const void **value, size_t *value_size); 199 const void **value, size_t *value_size);
200 200
201 201
202/** 202/**
@@ -210,8 +210,8 @@ GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
210 */ 210 */
211typedef int 211typedef int
212(*GNUNET_PSYC_Iterator) (void *cls, enum GNUNET_PSYC_Operator oper, 212(*GNUNET_PSYC_Iterator) (void *cls, enum GNUNET_PSYC_Operator oper,
213 const char *name, const char *value, 213 const char *name, const char *value,
214 uint32_t value_size); 214 uint32_t value_size);
215 215
216 216
217/** 217/**
@@ -223,7 +223,7 @@ typedef int
223 */ 223 */
224void 224void
225GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, 225GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env,
226 GNUNET_PSYC_Iterator it, void *it_cls); 226 GNUNET_PSYC_Iterator it, void *it_cls);
227 227
228 228
229/** 229/**
@@ -273,8 +273,8 @@ GNUNET_PSYC_var_get_type (char *name);
273 */ 273 */
274int 274int
275GNUNET_PSYC_operation (char *name, void *current_value, size_t current_value_size, 275GNUNET_PSYC_operation (char *name, void *current_value, size_t current_value_size,
276 enum GNUNET_PSYC_Operator oper, void *args, size_t args_size, 276 enum GNUNET_PSYC_Operator oper, void *args, size_t args_size,
277 void **return_value, size_t *return_value_size); 277 void **return_value, size_t *return_value_size);
278 278
279 279
280/** 280/**
diff --git a/src/psycutil/psyc_env.c b/src/psycutil/psyc_env.c
index b4861a25d..0d8a4ec69 100644
--- a/src/psycutil/psyc_env.c
+++ b/src/psycutil/psyc_env.c
@@ -66,8 +66,8 @@ GNUNET_PSYC_env_create ()
66 */ 66 */
67void 67void
68GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env, 68GNUNET_PSYC_env_add (struct GNUNET_PSYC_Environment *env,
69 enum GNUNET_PSYC_Operator oper, const char *name, 69 enum GNUNET_PSYC_Operator oper, const char *name,
70 const void *value, size_t value_size) 70 const void *value, size_t value_size)
71{ 71{
72 struct GNUNET_PSYC_Modifier *mod = GNUNET_new (struct GNUNET_PSYC_Modifier); 72 struct GNUNET_PSYC_Modifier *mod = GNUNET_new (struct GNUNET_PSYC_Modifier);
73 mod->oper = oper; 73 mod->oper = oper;
@@ -104,7 +104,7 @@ GNUNET_PSYC_env_tail (const struct GNUNET_PSYC_Environment *env)
104 */ 104 */
105void 105void
106GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env, 106GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
107 struct GNUNET_PSYC_Modifier *mod) 107 struct GNUNET_PSYC_Modifier *mod)
108{ 108{
109 GNUNET_CONTAINER_DLL_remove (env->mod_head, env->mod_tail, mod); 109 GNUNET_CONTAINER_DLL_remove (env->mod_head, env->mod_tail, mod);
110} 110}
@@ -123,8 +123,8 @@ GNUNET_PSYC_env_remove (struct GNUNET_PSYC_Environment *env,
123 */ 123 */
124int 124int
125GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env, 125GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
126 enum GNUNET_PSYC_Operator *oper, const char **name, 126 enum GNUNET_PSYC_Operator *oper, const char **name,
127 const void **value, size_t *value_size) 127 const void **value, size_t *value_size)
128{ 128{
129 if (NULL == env->mod_head) 129 if (NULL == env->mod_head)
130 return GNUNET_NO; 130 return GNUNET_NO;
@@ -152,7 +152,7 @@ GNUNET_PSYC_env_shift (struct GNUNET_PSYC_Environment *env,
152 */ 152 */
153void 153void
154GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env, 154GNUNET_PSYC_env_iterate (const struct GNUNET_PSYC_Environment *env,
155 GNUNET_PSYC_Iterator it, void *it_cls) 155 GNUNET_PSYC_Iterator it, void *it_cls)
156{ 156{
157 struct GNUNET_PSYC_Modifier *mod; 157 struct GNUNET_PSYC_Modifier *mod;
158 for (mod = env->mod_head; NULL != mod; mod = mod->next) 158 for (mod = env->mod_head; NULL != mod; mod = mod->next)