diff options
Diffstat (limited to 'src/plugins/chat/chat.c')
-rw-r--r-- | src/plugins/chat/chat.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/chat/chat.c b/src/plugins/chat/chat.c index b9fceec8..2e352bb7 100644 --- a/src/plugins/chat/chat.c +++ b/src/plugins/chat/chat.c | |||
@@ -41,7 +41,7 @@ struct GNUNET_CHAT_safe_nick_write_struct | |||
41 | { | 41 | { |
42 | GtkListStore *model; | 42 | GtkListStore *model; |
43 | GdkPixbuf *icon; | 43 | GdkPixbuf *icon; |
44 | const struct GNUNET_ECRS_MetaData *meta; | 44 | const struct GNUNET_MetaData *meta; |
45 | const char *nick; | 45 | const char *nick; |
46 | GNUNET_HashCode pid; | 46 | GNUNET_HashCode pid; |
47 | }; | 47 | }; |
@@ -119,7 +119,7 @@ add_nick_save_call (void *arg) | |||
119 | &iter, | 119 | &iter, |
120 | CHAT_PID, pid, | 120 | CHAT_PID, pid, |
121 | CHAT_METADATA, | 121 | CHAT_METADATA, |
122 | GNUNET_ECRS_meta_data_duplicate (cls->meta), CHAT_ICON, | 122 | GNUNET_meta_data_duplicate (cls->meta), CHAT_ICON, |
123 | cls->icon, CHAT_NICKNAME, cls->nick, -1); | 123 | cls->icon, CHAT_NICKNAME, cls->nick, -1); |
124 | return NULL; | 124 | return NULL; |
125 | } | 125 | } |
@@ -134,7 +134,7 @@ remove_nick_save_call (void *arg) | |||
134 | GtkListStore *model; | 134 | GtkListStore *model; |
135 | GtkTreeIter iter; | 135 | GtkTreeIter iter; |
136 | GNUNET_HashCode *pid; | 136 | GNUNET_HashCode *pid; |
137 | struct GNUNET_ECRS_MetaData *meta; | 137 | struct GNUNET_MetaData *meta; |
138 | 138 | ||
139 | model = GTK_LIST_STORE (cls->model); | 139 | model = GTK_LIST_STORE (cls->model); |
140 | /* find and remove existing entry */ | 140 | /* find and remove existing entry */ |
@@ -149,7 +149,7 @@ remove_nick_save_call (void *arg) | |||
149 | if ((pid != NULL) && | 149 | if ((pid != NULL) && |
150 | (0 == memcmp (pid, &cls->pid, sizeof (GNUNET_HashCode)))) | 150 | (0 == memcmp (pid, &cls->pid, sizeof (GNUNET_HashCode)))) |
151 | { | 151 | { |
152 | GNUNET_ECRS_meta_data_destroy (meta); | 152 | GNUNET_meta_data_destroy (meta); |
153 | GNUNET_free (pid); | 153 | GNUNET_free (pid); |
154 | gtk_list_store_remove (model, &iter); | 154 | gtk_list_store_remove (model, &iter); |
155 | return NULL; /* done! */ | 155 | return NULL; /* done! */ |
@@ -178,7 +178,7 @@ static int | |||
178 | receive_callback (void *cls, | 178 | receive_callback (void *cls, |
179 | struct GNUNET_CHAT_Room *room, | 179 | struct GNUNET_CHAT_Room *room, |
180 | const GNUNET_HashCode * sender, | 180 | const GNUNET_HashCode * sender, |
181 | const struct GNUNET_ECRS_MetaData *member_info, | 181 | const struct GNUNET_MetaData *member_info, |
182 | const char *message, GNUNET_CHAT_MSG_OPTIONS options) | 182 | const char *message, GNUNET_CHAT_MSG_OPTIONS options) |
183 | { | 183 | { |
184 | struct GNUNET_CHAT_gui_chat_client *client = cls; | 184 | struct GNUNET_CHAT_gui_chat_client *client = cls; |
@@ -186,7 +186,7 @@ receive_callback (void *cls, | |||
186 | char *sndr; | 186 | char *sndr; |
187 | 187 | ||
188 | sndr = | 188 | sndr = |
189 | sender == NULL ? _("anonymous") : GNUNET_PSEUDO_id_to_name (chat_ectx, | 189 | sender == NULL ? _("anonymous") : GNUNET_pseudonym_id_to_name (chat_ectx, |
190 | chat_cfg, | 190 | chat_cfg, |
191 | sender); | 191 | sender); |
192 | writearg.text_view = client->text_view; | 192 | writearg.text_view = client->text_view; |
@@ -199,7 +199,7 @@ receive_callback (void *cls, | |||
199 | 199 | ||
200 | static int | 200 | static int |
201 | member_list_callback (void *cls, | 201 | member_list_callback (void *cls, |
202 | const struct GNUNET_ECRS_MetaData *member_info, | 202 | const struct GNUNET_MetaData *member_info, |
203 | const GNUNET_RSA_PublicKey * pkey, | 203 | const GNUNET_RSA_PublicKey * pkey, |
204 | GNUNET_CHAT_MSG_OPTIONS opt) | 204 | GNUNET_CHAT_MSG_OPTIONS opt) |
205 | { | 205 | { |
@@ -208,7 +208,7 @@ member_list_callback (void *cls, | |||
208 | char *nick; | 208 | char *nick; |
209 | 209 | ||
210 | GNUNET_hash (pkey, sizeof (GNUNET_RSA_PublicKey), &writearg.pid); | 210 | GNUNET_hash (pkey, sizeof (GNUNET_RSA_PublicKey), &writearg.pid); |
211 | nick = GNUNET_PSEUDO_id_to_name (chat_ectx, chat_cfg, &writearg.pid); | 211 | nick = GNUNET_pseudonym_id_to_name (chat_ectx, chat_cfg, &writearg.pid); |
212 | writearg.model = client->nick_model; | 212 | writearg.model = client->nick_model; |
213 | /* FIXME: set icon if pid == ours */ | 213 | /* FIXME: set icon if pid == ours */ |
214 | writearg.icon = NULL; | 214 | writearg.icon = NULL; |
@@ -264,7 +264,7 @@ create_chat_room_tab (const char *room_name, const char *nick) | |||
264 | GtkWidget *chatnotebook; | 264 | GtkWidget *chatnotebook; |
265 | GtkTreeView *treeview; | 265 | GtkTreeView *treeview; |
266 | struct GNUNET_CHAT_gui_chat_client *client; | 266 | struct GNUNET_CHAT_gui_chat_client *client; |
267 | struct GNUNET_ECRS_MetaData *meta; | 267 | struct GNUNET_MetaData *meta; |
268 | GtkCellRenderer *renderer; | 268 | GtkCellRenderer *renderer; |
269 | GtkTreeViewColumn *column; | 269 | GtkTreeViewColumn *column; |
270 | int col; | 270 | int col; |
@@ -329,8 +329,8 @@ create_chat_room_tab (const char *room_name, const char *nick) | |||
329 | list = client; | 329 | list = client; |
330 | GNUNET_mutex_unlock (lock); | 330 | GNUNET_mutex_unlock (lock); |
331 | 331 | ||
332 | meta = GNUNET_ECRS_meta_data_create (); | 332 | meta = GNUNET_meta_data_create (); |
333 | GNUNET_ECRS_meta_data_insert (meta, EXTRACTOR_TITLE, nick); | 333 | GNUNET_meta_data_insert (meta, EXTRACTOR_TITLE, nick); |
334 | client->room = | 334 | client->room = |
335 | GNUNET_CHAT_join_room (chat_ectx, chat_cfg, nick, | 335 | GNUNET_CHAT_join_room (chat_ectx, chat_cfg, nick, |
336 | meta, | 336 | meta, |
@@ -338,7 +338,7 @@ create_chat_room_tab (const char *room_name, const char *nick) | |||
338 | -1, | 338 | -1, |
339 | &receive_callback, client, &member_list_callback, | 339 | &receive_callback, client, &member_list_callback, |
340 | client, NULL, NULL, &client->mypid); | 340 | client, NULL, NULL, &client->mypid); |
341 | GNUNET_ECRS_meta_data_destroy (meta); | 341 | GNUNET_meta_data_destroy (meta); |
342 | } | 342 | } |
343 | 343 | ||
344 | void | 344 | void |