summaryrefslogtreecommitdiff
path: root/src/contact.h
diff options
context:
space:
mode:
authorAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>2012-03-14 19:29:54 -0300
committerOlli Salli <olli.salli@collabora.co.uk>2012-03-15 22:03:10 +0200
commit19539e3418641cd379e80a69d3243db5537e0dc3 (patch)
treeb204e7e8d1838173e38e89dc79e4cb88655b6607 /src/contact.h
parent5754bc81e3f94589d91820fe34975dfb63730f28 (diff)
downloadtelepathy-salut-19539e3418641cd379e80a69d3243db5537e0dc3.tar.gz
Move plugin library-specific code from util.c into its own file, to
prevent dependency problems As part of this, a new SalutPluginContactInterface had to be created to access contact capabilities that were needed for the plugin utils. Accessing SalutContact directly would bring most of salut core in, so a GInterface is used, similar to what is done with SalutPluginConnection
Diffstat (limited to 'src/contact.h')
-rw-r--r--src/contact.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/contact.h b/src/contact.h
index b2be40b1..da99773f 100644
--- a/src/contact.h
+++ b/src/contact.h
@@ -27,6 +27,9 @@
#include <salut/capability-set.h>
#include "presence.h"
#include "connection.h"
+
+#include "salut/plugin-contact.h"
+
#ifdef ENABLE_OLPC
#include "olpc-activity.h"
#endif
@@ -152,6 +155,8 @@ void salut_contact_set_capabilities (SalutContact *contact,
const GabbleCapabilitySet *caps,
const GPtrArray *data_forms);
+GabbleCapabilitySet *salut_contact_get_capabilities (SalutPluginContact *plugin_contact);
+
#ifdef ENABLE_OLPC
typedef void (*SalutContactOLPCActivityFunc)
(SalutOlpcActivity *activity, gpointer user_data);