aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-tube.h
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-tube.h')
-rw-r--r--libempathy/empathy-tp-tube.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/libempathy/empathy-tp-tube.h b/libempathy/empathy-tp-tube.h
index 8e63945e5..79cffa1a2 100644
--- a/libempathy/empathy-tp-tube.h
+++ b/libempathy/empathy-tp-tube.h
@@ -70,17 +70,34 @@ struct _EmpathyTpTubeClass {
GType empathy_tp_tube_get_type (void) G_GNUC_CONST;
EmpathyTpTube *empathy_tp_tube_new (TpChannel *channel);
EmpathyTpTube *empathy_tp_tube_new_stream_tube (EmpathyContact *contact,
- TpSocketAddressType type, const gchar *hostname, guint port,
- const gchar *service, GHashTable *parameters);
+ TpSocketAddressType type,
+ const gchar *hostname,
+ guint port,
+ const gchar *service,
+ GHashTable *parameters);
-typedef void (EmpatyTpTubeAcceptStreamTubeCb) (EmpathyTpTube *tube,
- const EmpathyTpTubeAddress *address, const GError *error,
+typedef void (EmpathyTpTubeAcceptStreamTubeCb) (EmpathyTpTube *tube,
+ const EmpathyTpTubeAddress *address,
+ const GError *error,
gpointer user_data);
void empathy_tp_tube_accept_stream_tube (EmpathyTpTube *tube,
- TpSocketAddressType type, EmpatyTpTubeAcceptStreamTubeCb *callback,
+ TpSocketAddressType type,
+ EmpathyTpTubeAcceptStreamTubeCb *callback,
gpointer user_data);
+typedef void (EmpathyTpTubeReadyCb)
+ (EmpathyTpTube *tube,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object);
+
+void empathy_tp_tube_call_when_ready (EmpathyTpTube *tube,
+ EmpathyTpTubeReadyCb *callback,
+ gpointer user_data,
+ GDestroyNotify destroy,
+ GObject *weak_object);
+
G_END_DECLS
#endif /* __EMPATHY_TP_TUBE_H__ */