[Telepathy-commits] [telepathy-glib/master] Add accessors for read-only fields in TpProxy.
Will Thompson
will.thompson at collabora.co.uk
Tue Oct 7 06:51:46 PDT 2008
---
docs/reference/telepathy-glib-sections.txt | 5 ++
telepathy-glib/proxy.c | 82 ++++++++++++++++++++++++++++
telepathy-glib/proxy.h | 10 ++++
3 files changed, 97 insertions(+), 0 deletions(-)
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index 26c4904..e04e79b 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -1693,6 +1693,11 @@ TpProxyPendingCall
tp_proxy_pending_call_cancel
TpProxySignalConnection
tp_proxy_signal_connection_disconnect
+tp_proxy_get_dbus_daemon
+tp_proxy_get_dbus_connection
+tp_proxy_get_bus_name
+tp_proxy_get_object_path
+tp_proxy_get_invalidated
TP_DBUS_ERRORS
TpDBusError
<SUBSECTION Standard>
diff --git a/telepathy-glib/proxy.c b/telepathy-glib/proxy.c
index 3d59704..5526de7 100644
--- a/telepathy-glib/proxy.c
+++ b/telepathy-glib/proxy.c
@@ -1044,6 +1044,88 @@ tp_proxy_class_init (TpProxyClass *klass)
}
/**
+ * tp_proxy_get_dbus_daemon:
+ * @self: a proxy object
+ *
+ * <!-- -->
+ *
+ * Returns: the #TpDBusDaemon for this object, if any; always %NULL
+ * if this object is itself a #TpDBusDaemon
+ *
+ * Since: 0.7.UNRELEASED
+ */
+TpDBusDaemon *
+tp_proxy_get_dbus_daemon (TpProxy *self)
+{
+ return self->dbus_daemon;
+}
+
+/**
+ * tp_proxy_get_dbus_connection:
+ * @self: a proxy object
+ *
+ * <!-- -->
+ *
+ * Returns: the D-Bus connection used by this object
+ *
+ * Since: 0.7.UNRELEASED
+ */
+DBusGConnection *
+tp_proxy_get_dbus_connection (TpProxy *self)
+{
+ return self->dbus_connection;
+}
+
+/**
+ * tp_proxy_get_bus_name:
+ * @self: a proxy object
+ *
+ * <!-- -->
+ *
+ * Returns: the bus name of the application exporting the object
+ *
+ * Since: 0.7.UNRELEASED
+ */
+const gchar *
+tp_proxy_get_bus_name (TpProxy *self)
+{
+ return self->bus_name;
+}
+
+/**
+ * tp_proxy_get_object_path:
+ * @self: a proxy object
+ *
+ * <!-- -->
+ *
+ * Returns: the object path of the remote object
+ *
+ * Since: 0.7.UNRELEASED
+ */
+const gchar *
+tp_proxy_get_object_path (TpProxy *self)
+{
+ return self->object_path;
+}
+
+/**
+ * tp_proxy_get_invalidated:
+ * @self: a proxy object
+ *
+ * <!-- -->
+ *
+ * Returns: the reason this proxy was invalidated, or %NULL if has not been
+ * invalidated
+ *
+ * Since: 0.7.UNRELEASED
+ */
+const GError *
+tp_proxy_get_invalidated (TpProxy *self)
+{
+ return self->invalidated;
+}
+
+/**
* tp_proxy_dbus_g_proxy_claim_for_signal_adding:
* @proxy: a #DBusGProxy
*
diff --git a/telepathy-glib/proxy.h b/telepathy-glib/proxy.h
index 0975fb7..0d616e6 100644
--- a/telepathy-glib/proxy.h
+++ b/telepathy-glib/proxy.h
@@ -120,6 +120,16 @@ _tp_proxy_inline_has_interface (gpointer self, const gchar *interface)
#define tp_proxy_has_interface(self, interface) \
(_tp_proxy_inline_has_interface (self, interface))
+TpDBusDaemon *tp_proxy_get_dbus_daemon (TpProxy *self);
+
+DBusGConnection *tp_proxy_get_dbus_connection (TpProxy *self);
+
+const gchar *tp_proxy_get_bus_name (TpProxy *self);
+
+const gchar *tp_proxy_get_object_path (TpProxy *self);
+
+const GError *tp_proxy_get_invalidated (TpProxy *self);
+
G_END_DECLS
#include <telepathy-glib/_gen/tp-cli-generic.h>
--
1.5.6.5
More information about the Telepathy-commits
mailing list