aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_contact.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_contact.h')
-rw-r--r--src/gnunet_chat_contact.h22
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
33struct GNUNET_CHAT_Handle;
34struct GNUNET_CHAT_Context;
29 35
30struct GNUNET_CHAT_Contact 36struct 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
38struct GNUNET_CHAT_Contact* 44struct GNUNET_CHAT_Contact*
39contact_create (struct GNUNET_CHAT_Handle *handle, 45contact_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
42void 48void
43contact_destroy (struct GNUNET_CHAT_Contact *contact); 49contact_destroy (struct GNUNET_CHAT_Contact* contact);
44
45int
46contact_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_ */