aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-contact-factory.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-05-10 18:35:19 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-05-26 17:17:47 +0800
commit696bd076bbd431aad122c66cadfb6ec3f5ff1762 (patch)
treebc8f823d77c9cf63e1fed1cbc4d8b196496e13fa /libempathy/empathy-tp-contact-factory.h
parent373413516c18200750da27f385da588da6c297cc (diff)
downloadgsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar.gz
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar.bz2
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar.lz
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar.xz
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.tar.zst
gsoc2013-empathy-696bd076bbd431aad122c66cadfb6ec3f5ff1762.zip
Kill EmpathyTpContactFactory object. Its API stays as helper code on TpConnection.
Note that it uses empathy_contact_dup_from_tp_contact() internally, so we are sure to really have at most one EmpathyContact object per TpContact Fixes bug #619488
Diffstat (limited to 'libempathy/empathy-tp-contact-factory.h')
-rw-r--r--libempathy/empathy-tp-contact-factory.h38
1 files changed, 8 insertions, 30 deletions
diff --git a/libempathy/empathy-tp-contact-factory.h b/libempathy/empathy-tp-contact-factory.h
index d2572f298..59109daee 100644
--- a/libempathy/empathy-tp-contact-factory.h
+++ b/libempathy/empathy-tp-contact-factory.h
@@ -30,26 +30,7 @@
G_BEGIN_DECLS
-#define EMPATHY_TYPE_TP_CONTACT_FACTORY (empathy_tp_contact_factory_get_type ())
-#define EMPATHY_TP_CONTACT_FACTORY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_TP_CONTACT_FACTORY, EmpathyTpContactFactory))
-#define EMPATHY_TP_CONTACT_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EMPATHY_TYPE_TP_CONTACT_FACTORY, EmpathyTpContactFactoryClass))
-#define EMPATHY_IS_TP_CONTACT_FACTORY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_TP_CONTACT_FACTORY))
-#define EMPATHY_IS_TP_CONTACT_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_TP_CONTACT_FACTORY))
-#define EMPATHY_TP_CONTACT_FACTORY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_TP_CONTACT_FACTORY, EmpathyTpContactFactoryClass))
-
-typedef struct _EmpathyTpContactFactory EmpathyTpContactFactory;
-typedef struct _EmpathyTpContactFactoryClass EmpathyTpContactFactoryClass;
-
-struct _EmpathyTpContactFactory {
- GObject parent;
- gpointer priv;
-};
-
-struct _EmpathyTpContactFactoryClass {
- GObjectClass parent_class;
-};
-
-typedef void (*EmpathyTpContactFactoryContactsByIdCb) (EmpathyTpContactFactory *factory,
+typedef void (*EmpathyTpContactFactoryContactsByIdCb) (TpConnection *connection,
guint n_contacts,
EmpathyContact * const * contacts,
const gchar * const * requested_ids,
@@ -58,7 +39,7 @@ typedef void (*EmpathyTpContactFactoryContactsByIdCb) (EmpathyTpContactFactory *
gpointer user_data,
GObject *weak_object);
-typedef void (*EmpathyTpContactFactoryContactsByHandleCb) (EmpathyTpContactFactory *factory,
+typedef void (*EmpathyTpContactFactoryContactsByHandleCb) (TpConnection *connection,
guint n_contacts,
EmpathyContact * const * contacts,
guint n_failed,
@@ -67,42 +48,39 @@ typedef void (*EmpathyTpContactFactoryContactsByHandleCb) (EmpathyTpContactFacto
gpointer user_data,
GObject *weak_object);
-typedef void (*EmpathyTpContactFactoryContactCb) (EmpathyTpContactFactory *factory,
+typedef void (*EmpathyTpContactFactoryContactCb) (TpConnection *connection,
EmpathyContact *contact,
const GError *error,
gpointer user_data,
GObject *weak_object);
-GType empathy_tp_contact_factory_get_type (void) G_GNUC_CONST;
-EmpathyTpContactFactory *empathy_tp_contact_factory_dup_singleton (TpConnection *connection);
-void empathy_tp_contact_factory_get_from_ids (EmpathyTpContactFactory *tp_factory,
+void empathy_tp_contact_factory_get_from_ids (TpConnection *connection,
guint n_ids,
const gchar * const *ids,
EmpathyTpContactFactoryContactsByIdCb callback,
gpointer user_data,
GDestroyNotify destroy,
GObject *weak_object);
-void empathy_tp_contact_factory_get_from_handles (EmpathyTpContactFactory *tp_factory,
+void empathy_tp_contact_factory_get_from_handles (TpConnection *connection,
guint n_handles,
const TpHandle *handles,
EmpathyTpContactFactoryContactsByHandleCb callback,
gpointer user_data,
GDestroyNotify destroy,
GObject *weak_object);
-void empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
+void empathy_tp_contact_factory_get_from_id (TpConnection *connection,
const gchar *id,
EmpathyTpContactFactoryContactCb callback,
gpointer user_data,
GDestroyNotify destroy,
GObject *weak_object);
-void empathy_tp_contact_factory_get_from_handle (EmpathyTpContactFactory *tp_factory,
+void empathy_tp_contact_factory_get_from_handle (TpConnection *connection,
TpHandle handle,
EmpathyTpContactFactoryContactCb callback,
gpointer user_data,
GDestroyNotify destroy,
GObject *weak_object);
-void empathy_tp_contact_factory_set_alias (EmpathyTpContactFactory *tp_factory,
- EmpathyContact *contact,
+void empathy_tp_contact_factory_set_alias (EmpathyContact *contact,
const gchar *alias);
G_END_DECLS