diff options
Diffstat (limited to 'src/gnunet_chat_contact.h')
-rw-r--r-- | src/gnunet_chat_contact.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gnunet_chat_contact.h b/src/gnunet_chat_contact.h index e649047..e215c5f 100644 --- a/src/gnunet_chat_contact.h +++ b/src/gnunet_chat_contact.h | |||
@@ -32,15 +32,20 @@ struct GNUNET_CHAT_Contact | |||
32 | struct GNUNET_CHAT_Handle *handle; | 32 | struct GNUNET_CHAT_Handle *handle; |
33 | struct GNUNET_CHAT_Context *context; | 33 | struct GNUNET_CHAT_Context *context; |
34 | 34 | ||
35 | struct GNUNET_MESSENGER_Contact *contact; | 35 | const struct GNUNET_MESSENGER_Contact *contact; |
36 | |||
37 | char *nick; | ||
38 | }; | 36 | }; |
39 | 37 | ||
40 | struct GNUNET_CHAT_Contact* | 38 | struct GNUNET_CHAT_Contact* |
41 | contact_create (struct GNUNET_CHAT_Handle *handle); | 39 | contact_create (struct GNUNET_CHAT_Handle *handle, |
40 | const struct GNUNET_MESSENGER_Contact *msg_contact); | ||
42 | 41 | ||
43 | void | 42 | void |
44 | contact_destroy (struct GNUNET_CHAT_Contact *contact); | 43 | contact_destroy (struct GNUNET_CHAT_Contact *contact); |
45 | 44 | ||
45 | int | ||
46 | contact_call (struct GNUNET_CHAT_Handle *handle, | ||
47 | const struct GNUNET_MESSENGER_Contact *msg_contact, | ||
48 | GNUNET_CHAT_ContactCallback callback, | ||
49 | void *cls); | ||
50 | |||
46 | #endif /* GNUNET_CHAT_CONTACT_H_ */ | 51 | #endif /* GNUNET_CHAT_CONTACT_H_ */ |