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/util/pseudonym.c | |
parent | 4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff) | |
download | gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip |
const-ing of config-handles
Diffstat (limited to 'src/util/pseudonym.c')
-rw-r--r-- | src/util/pseudonym.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c index 52351c2c8..5bf336060 100644 --- a/src/util/pseudonym.c +++ b/src/util/pseudonym.c | |||
@@ -64,7 +64,7 @@ internal_notify (const GNUNET_HashCode * id, | |||
64 | * a new pseudonym. | 64 | * a new pseudonym. |
65 | */ | 65 | */ |
66 | int | 66 | int |
67 | GNUNET_PSEUDONYM_discovery_callback_register (struct | 67 | GNUNET_PSEUDONYM_discovery_callback_register (const struct |
68 | GNUNET_CONFIGURATION_Handle | 68 | GNUNET_CONFIGURATION_Handle |
69 | *cfg, | 69 | *cfg, |
70 | GNUNET_PSEUDONYM_Iterator | 70 | GNUNET_PSEUDONYM_Iterator |
@@ -115,7 +115,7 @@ GNUNET_PSEUDONYM_discovery_callback_unregister (GNUNET_PSEUDONYM_Iterator | |||
115 | * pseudonym identifier and directory prefix. | 115 | * pseudonym identifier and directory prefix. |
116 | */ | 116 | */ |
117 | static char * | 117 | static char * |
118 | get_data_filename (struct GNUNET_CONFIGURATION_Handle | 118 | get_data_filename (const struct GNUNET_CONFIGURATION_Handle |
119 | *cfg, const char *prefix, const GNUNET_HashCode * psid) | 119 | *cfg, const char *prefix, const GNUNET_HashCode * psid) |
120 | { | 120 | { |
121 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 121 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
@@ -131,7 +131,7 @@ get_data_filename (struct GNUNET_CONFIGURATION_Handle | |||
131 | } | 131 | } |
132 | 132 | ||
133 | static void | 133 | static void |
134 | write_pseudonym_info (struct GNUNET_CONFIGURATION_Handle *cfg, | 134 | write_pseudonym_info (const struct GNUNET_CONFIGURATION_Handle *cfg, |
135 | const GNUNET_HashCode * nsid, | 135 | const GNUNET_HashCode * nsid, |
136 | const struct GNUNET_CONTAINER_MetaData *meta, | 136 | const struct GNUNET_CONTAINER_MetaData *meta, |
137 | int32_t ranking, const char *ns_name) | 137 | int32_t ranking, const char *ns_name) |
@@ -179,7 +179,7 @@ write_pseudonym_info (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
179 | } | 179 | } |
180 | 180 | ||
181 | static int | 181 | static int |
182 | read_info (struct GNUNET_CONFIGURATION_Handle *cfg, | 182 | read_info (const struct GNUNET_CONFIGURATION_Handle *cfg, |
183 | const GNUNET_HashCode * nsid, | 183 | const GNUNET_HashCode * nsid, |
184 | struct GNUNET_CONTAINER_MetaData **meta, | 184 | struct GNUNET_CONTAINER_MetaData **meta, |
185 | int32_t * ranking, char **ns_name) | 185 | int32_t * ranking, char **ns_name) |
@@ -273,7 +273,7 @@ read_info (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
273 | * @return NULL on failure (should never happen) | 273 | * @return NULL on failure (should never happen) |
274 | */ | 274 | */ |
275 | char * | 275 | char * |
276 | GNUNET_PSEUDONYM_id_to_name (struct GNUNET_CONFIGURATION_Handle *cfg, | 276 | GNUNET_PSEUDONYM_id_to_name (const struct GNUNET_CONFIGURATION_Handle *cfg, |
277 | const GNUNET_HashCode * nsid) | 277 | const GNUNET_HashCode * nsid) |
278 | { | 278 | { |
279 | struct GNUNET_CONTAINER_MetaData *meta; | 279 | struct GNUNET_CONTAINER_MetaData *meta; |
@@ -356,7 +356,7 @@ GNUNET_PSEUDONYM_id_to_name (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
356 | * @return GNUNET_OK on success | 356 | * @return GNUNET_OK on success |
357 | */ | 357 | */ |
358 | int | 358 | int |
359 | GNUNET_PSEUDONYM_name_to_id (struct GNUNET_CONFIGURATION_Handle *cfg, | 359 | GNUNET_PSEUDONYM_name_to_id (const struct GNUNET_CONFIGURATION_Handle *cfg, |
360 | const char *ns_uname, GNUNET_HashCode * nsid) | 360 | const char *ns_uname, GNUNET_HashCode * nsid) |
361 | { | 361 | { |
362 | size_t slen; | 362 | size_t slen; |
@@ -408,7 +408,7 @@ struct ListPseudonymClosure | |||
408 | { | 408 | { |
409 | GNUNET_PSEUDONYM_Iterator iterator; | 409 | GNUNET_PSEUDONYM_Iterator iterator; |
410 | void *closure; | 410 | void *closure; |
411 | struct GNUNET_CONFIGURATION_Handle *cfg; | 411 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
412 | }; | 412 | }; |
413 | 413 | ||
414 | static int | 414 | static int |
@@ -443,7 +443,7 @@ list_pseudonym_helper (void *cls, const char *fullname) | |||
443 | * List all available pseudonyms. | 443 | * List all available pseudonyms. |
444 | */ | 444 | */ |
445 | int | 445 | int |
446 | GNUNET_PSEUDONYM_list_all (struct GNUNET_CONFIGURATION_Handle *cfg, | 446 | GNUNET_PSEUDONYM_list_all (const struct GNUNET_CONFIGURATION_Handle *cfg, |
447 | GNUNET_PSEUDONYM_Iterator iterator, void *closure) | 447 | GNUNET_PSEUDONYM_Iterator iterator, void *closure) |
448 | { | 448 | { |
449 | struct ListPseudonymClosure cls; | 449 | struct ListPseudonymClosure cls; |
@@ -470,7 +470,7 @@ GNUNET_PSEUDONYM_list_all (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
470 | * @return new rating of the pseudonym | 470 | * @return new rating of the pseudonym |
471 | */ | 471 | */ |
472 | int | 472 | int |
473 | GNUNET_PSEUDONYM_rank (struct GNUNET_CONFIGURATION_Handle *cfg, | 473 | GNUNET_PSEUDONYM_rank (const struct GNUNET_CONFIGURATION_Handle *cfg, |
474 | const GNUNET_HashCode * nsid, int delta) | 474 | const GNUNET_HashCode * nsid, int delta) |
475 | { | 475 | { |
476 | struct GNUNET_CONTAINER_MetaData *meta; | 476 | struct GNUNET_CONTAINER_MetaData *meta; |
@@ -513,7 +513,7 @@ merge_meta_helper (EXTRACTOR_KeywordType type, const char *data, void *cls) | |||
513 | * @param id the pseudonym identifier | 513 | * @param id the pseudonym identifier |
514 | */ | 514 | */ |
515 | void | 515 | void |
516 | GNUNET_PSEUDONYM_add (struct GNUNET_CONFIGURATION_Handle *cfg, | 516 | GNUNET_PSEUDONYM_add (const struct GNUNET_CONFIGURATION_Handle *cfg, |
517 | const GNUNET_HashCode * id, | 517 | const GNUNET_HashCode * id, |
518 | const struct GNUNET_CONTAINER_MetaData *meta) | 518 | const struct GNUNET_CONTAINER_MetaData *meta) |
519 | { | 519 | { |