summaryrefslogtreecommitdiff
path: root/telepathy-glib/proxy-internal.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-15 20:24:47 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-11-15 20:24:47 +0000
commita27c42087b04eb9ff95663fe10283c15e39e88f3 (patch)
treea213aae76fdfbfb484297bb1f49393cd16600bf1 /telepathy-glib/proxy-internal.h
parent464ecd364784a83a653b7e248e63a73297289d51 (diff)
downloadtelepathy-glib-a27c42087b04eb9ff95663fe10283c15e39e88f3.tar.gz
Make TpProxy not a subclass of DBusGProxy
20071115202447-53eee-490156f3199193578bfe147e1361e478656c8048.gz
Diffstat (limited to 'telepathy-glib/proxy-internal.h')
-rw-r--r--telepathy-glib/proxy-internal.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/telepathy-glib/proxy-internal.h b/telepathy-glib/proxy-internal.h
index fb84b9c24..a1ca44b57 100644
--- a/telepathy-glib/proxy-internal.h
+++ b/telepathy-glib/proxy-internal.h
@@ -21,25 +21,40 @@
#ifndef __TP_PROXY_INTERNAL_H__
#define __TP_PROXY_INTERNAL_H__
+#include <telepathy-glib/proxy.h>
+
G_BEGIN_DECLS
struct _TpProxyClass {
- DBusGProxyClass parent_class;
+ GObjectClass parent_class;
/*<protected>*/
GQuark fixed_interface;
- gboolean must_have_unique_name:1;
- /*<private>*/
- TpProxyClassPrivate *priv;
+ gboolean must_have_unique_name:1;
};
struct _TpProxy {
- DBusGProxy parent;
+ GObject parent;
+
/*<private>*/
- TpProxyPrivate *priv;
+ DBusGConnection *dbus_connection;
+ gchar *bus_name;
+ gchar *object_path;
+ /* GQuark for interface => ref'd DBusGProxy * */
+ GData *interfaces;
+
+ gboolean valid:1;
+ gboolean dispose_has_run:1;
};
+DBusGProxy *tp_proxy_borrow_interface_by_id (TpProxy *self, GQuark interface,
+ GError **error);
+
+DBusGProxy *tp_proxy_add_interface_by_id (TpProxy *self, GQuark interface);
+
+void tp_proxy_invalidated (TpProxy *self);
+
G_END_DECLS
#endif