diff options
Diffstat (limited to 'src/fs/gnunet-pseudonym.c')
-rw-r--r-- | src/fs/gnunet-pseudonym.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/gnunet-pseudonym.c b/src/fs/gnunet-pseudonym.c index dd3c9d4a2..61975e463 100644 --- a/src/fs/gnunet-pseudonym.c +++ b/src/fs/gnunet-pseudonym.c | |||
@@ -95,13 +95,13 @@ progress_cb (void *cls, const struct GNUNET_FS_ProgressInfo *info) | |||
95 | 95 | ||
96 | 96 | ||
97 | static void | 97 | static void |
98 | ns_printer (void *cls, const char *name, const struct GNUNET_PseudonymIdentifier *pseudonym) | 98 | ns_printer (void *cls, const char *name, const struct GNUNET_FS_PseudonymIdentifier *pseudonym) |
99 | { | 99 | { |
100 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 100 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
101 | struct GNUNET_HashCode hc; | 101 | struct GNUNET_HashCode hc; |
102 | 102 | ||
103 | GNUNET_CRYPTO_hash (pseudonym, | 103 | GNUNET_CRYPTO_hash (pseudonym, |
104 | sizeof (struct GNUNET_PseudonymIdentifier), | 104 | sizeof (struct GNUNET_FS_PseudonymIdentifier), |
105 | &hc); | 105 | &hc); |
106 | GNUNET_CRYPTO_hash_to_enc (&hc, &enc); | 106 | GNUNET_CRYPTO_hash_to_enc (&hc, &enc); |
107 | FPRINTF (stdout, "%s (%s)\n", name, (const char *) &enc); | 107 | FPRINTF (stdout, "%s (%s)\n", name, (const char *) &enc); |
@@ -121,7 +121,7 @@ ns_printer (void *cls, const char *name, const struct GNUNET_PseudonymIdentifier | |||
121 | */ | 121 | */ |
122 | static int | 122 | static int |
123 | pseudo_printer (void *cls, | 123 | pseudo_printer (void *cls, |
124 | const struct GNUNET_PseudonymIdentifier *pseudonym, | 124 | const struct GNUNET_FS_PseudonymIdentifier *pseudonym, |
125 | const char *name, | 125 | const char *name, |
126 | const char *unique_name, | 126 | const char *unique_name, |
127 | const struct GNUNET_CONTAINER_MetaData *md, | 127 | const struct GNUNET_CONTAINER_MetaData *md, |
@@ -132,16 +132,16 @@ pseudo_printer (void *cls, | |||
132 | int getinfo_result; | 132 | int getinfo_result; |
133 | 133 | ||
134 | /* While we get a name from the caller, it might be NULL. | 134 | /* While we get a name from the caller, it might be NULL. |
135 | * GNUNET_PSEUDONYM_get_info () never returns NULL. | 135 | * GNUNET_FS_pseudonym_get_info () never returns NULL. |
136 | */ | 136 | */ |
137 | getinfo_result = GNUNET_PSEUDONYM_get_info (cfg, pseudonym, | 137 | getinfo_result = GNUNET_FS_pseudonym_get_info (cfg, pseudonym, |
138 | NULL, NULL, &id, NULL); | 138 | NULL, NULL, &id, NULL); |
139 | if (getinfo_result != GNUNET_OK) | 139 | if (getinfo_result != GNUNET_OK) |
140 | { | 140 | { |
141 | GNUNET_break (0); | 141 | GNUNET_break (0); |
142 | return GNUNET_OK; | 142 | return GNUNET_OK; |
143 | } | 143 | } |
144 | unique_id = GNUNET_PSEUDONYM_name_uniquify (cfg, pseudonym, id, NULL); | 144 | unique_id = GNUNET_FS_pseudonym_name_uniquify (cfg, pseudonym, id, NULL); |
145 | GNUNET_free (id); | 145 | GNUNET_free (id); |
146 | FPRINTF (stdout, "%s (%d):\n", unique_id, rating); | 146 | FPRINTF (stdout, "%s (%d):\n", unique_id, rating); |
147 | GNUNET_CONTAINER_meta_data_iterate (md, &EXTRACTOR_meta_data_print, stdout); | 147 | GNUNET_CONTAINER_meta_data_iterate (md, &EXTRACTOR_meta_data_print, stdout); |
@@ -154,7 +154,7 @@ pseudo_printer (void *cls, | |||
154 | static void | 154 | static void |
155 | post_advertising (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | 155 | post_advertising (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) |
156 | { | 156 | { |
157 | struct GNUNET_PseudonymIdentifier nsid; | 157 | struct GNUNET_FS_PseudonymIdentifier nsid; |
158 | char *set; | 158 | char *set; |
159 | int delta; | 159 | int delta; |
160 | 160 | ||
@@ -183,9 +183,9 @@ post_advertising (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
183 | *set = '\0'; | 183 | *set = '\0'; |
184 | delta = strtol (&set[1], NULL, /* no error handling yet */ | 184 | delta = strtol (&set[1], NULL, /* no error handling yet */ |
185 | 10); | 185 | 10); |
186 | if (GNUNET_OK == GNUNET_PSEUDONYM_name_to_id (cfg, rating_change, &nsid)) | 186 | if (GNUNET_OK == GNUNET_FS_pseudonym_name_to_id (cfg, rating_change, &nsid)) |
187 | { | 187 | { |
188 | (void) GNUNET_PSEUDONYM_rank (cfg, &nsid, delta); | 188 | (void) GNUNET_FS_pseudonym_rank (cfg, &nsid, delta); |
189 | } | 189 | } |
190 | else | 190 | else |
191 | { | 191 | { |
@@ -203,7 +203,7 @@ post_advertising (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
203 | } | 203 | } |
204 | else if (0 == no_remote_printing) | 204 | else if (0 == no_remote_printing) |
205 | { | 205 | { |
206 | GNUNET_PSEUDONYM_list_all (cfg, &pseudo_printer, NULL); | 206 | GNUNET_FS_pseudonym_list_all (cfg, &pseudo_printer, NULL); |
207 | } | 207 | } |
208 | GNUNET_FS_stop (h); | 208 | GNUNET_FS_stop (h); |
209 | } | 209 | } |