aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-tube.h
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:13:42 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:13:42 +0800
commitd971d3e84d6c6f5791b3de7557a5708f4d110044 (patch)
tree7e55952b2d03fe23f921b3c5c110921f6eaf8092 /libempathy/empathy-tp-tube.h
parent90e74b2234907a09953842e219bbf4da43e22171 (diff)
downloadgsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar.gz
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar.bz2
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar.lz
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar.xz
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.tar.zst
gsoc2013-empathy-d971d3e84d6c6f5791b3de7557a5708f4d110044.zip
Make empathy_tp_tube_accept_stream_tube more like underlying dbus function and hand errors to the caller
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2156
Diffstat (limited to 'libempathy/empathy-tp-tube.h')
-rw-r--r--libempathy/empathy-tp-tube.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/libempathy/empathy-tp-tube.h b/libempathy/empathy-tp-tube.h
index a908b0690..90955caa4 100644
--- a/libempathy/empathy-tp-tube.h
+++ b/libempathy/empathy-tp-tube.h
@@ -45,6 +45,19 @@ G_BEGIN_DECLS
typedef struct _EmpathyTpTube EmpathyTpTube;
typedef struct _EmpathyTpTubeClass EmpathyTpTubeClass;
+typedef struct {
+ TpSocketAddressType type;
+ union {
+ struct socket_address_t {
+ GArray *path;
+ } socket;
+ struct inet_address_t {
+ gchar *hostname;
+ guint port;
+ } inet;
+ } a;
+} EmpathyTpTubeAddress;
+
struct _EmpathyTpTube {
GObject parent;
gpointer priv;
@@ -59,10 +72,14 @@ 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);
+
+typedef void (EmpatyTpTubeAcceptStreamTubeCb) (EmpathyTpTube *tube,
+ const EmpathyTpTubeAddress *address, const GError *error,
+ gpointer user_data);
+
void empathy_tp_tube_accept_stream_tube (EmpathyTpTube *tube,
- TpSocketAddressType type);
-void empathy_tp_tube_get_socket (EmpathyTpTube *tube, gchar **hostname,
- guint *port);
+ TpSocketAddressType type, EmpatyTpTubeAcceptStreamTubeCb *callback,
+ gpointer user_data);
G_END_DECLS