diff options
Diffstat (limited to 'src/gnunet_chat_contact.h')
-rw-r--r-- | src/gnunet_chat_contact.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gnunet_chat_contact.h b/src/gnunet_chat_contact.h index e215c5f..1cf5618 100644 --- a/src/gnunet_chat_contact.h +++ b/src/gnunet_chat_contact.h | |||
@@ -25,27 +25,27 @@ | |||
25 | #ifndef GNUNET_CHAT_CONTACT_H_ | 25 | #ifndef GNUNET_CHAT_CONTACT_H_ |
26 | #define GNUNET_CHAT_CONTACT_H_ | 26 | #define GNUNET_CHAT_CONTACT_H_ |
27 | 27 | ||
28 | #include "gnunet_chat_context.h" | 28 | #include <gnunet/platform.h> |
29 | #include <gnunet/gnunet_common.h> | ||
30 | #include <gnunet/gnunet_messenger_service.h> | ||
31 | #include <gnunet/gnunet_util_lib.h> | ||
32 | |||
33 | struct GNUNET_CHAT_Handle; | ||
34 | struct GNUNET_CHAT_Context; | ||
29 | 35 | ||
30 | struct GNUNET_CHAT_Contact | 36 | struct GNUNET_CHAT_Contact |
31 | { | 37 | { |
32 | struct GNUNET_CHAT_Handle *handle; | 38 | struct GNUNET_CHAT_Handle *handle; |
33 | struct GNUNET_CHAT_Context *context; | 39 | struct GNUNET_CHAT_Context *context; |
34 | 40 | ||
35 | const struct GNUNET_MESSENGER_Contact *contact; | 41 | const struct GNUNET_MESSENGER_Contact *member; |
36 | }; | 42 | }; |
37 | 43 | ||
38 | struct GNUNET_CHAT_Contact* | 44 | struct GNUNET_CHAT_Contact* |
39 | contact_create (struct GNUNET_CHAT_Handle *handle, | 45 | contact_create_from_member (struct GNUNET_CHAT_Handle *handle, |
40 | const struct GNUNET_MESSENGER_Contact *msg_contact); | 46 | const struct GNUNET_MESSENGER_Contact *member); |
41 | 47 | ||
42 | void | 48 | void |
43 | contact_destroy (struct GNUNET_CHAT_Contact *contact); | 49 | contact_destroy (struct GNUNET_CHAT_Contact* contact); |
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 | 50 | ||
51 | #endif /* GNUNET_CHAT_CONTACT_H_ */ | 51 | #endif /* GNUNET_CHAT_CONTACT_H_ */ |