summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-11-26 12:34:08 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-18 08:57:30 +0200
commit6e70761bddc4def5057ccd240650a45601ce2cab (patch)
tree8e6e049be56b58b33781687227356fde521547f8
parentb2cde22bbf29015c644a6552cfad26d0ca9aabc9 (diff)
Add a #define for the Debug object path
-rw-r--r--docs/reference/telepathy-glib-sections.txt1
-rw-r--r--telepathy-glib/debug-sender.c3
-rw-r--r--telepathy-glib/defs.h8
3 files changed, 11 insertions, 1 deletions
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index 09950bff9..4541f8bb8 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -29,6 +29,7 @@ TP_CHANNEL_DISPATCHER_BUS_NAME
TP_CHANNEL_DISPATCHER_OBJECT_PATH
TP_CLIENT_BUS_NAME_BASE
TP_CLIENT_OBJECT_PATH_BASE
+TP_DEBUG_OBJECT_PATH
TP_USER_ACTION_TIME_NOT_USER_ACTION
TP_USER_ACTION_TIME_CURRENT_TIME
</SECTION>
diff --git a/telepathy-glib/debug-sender.c b/telepathy-glib/debug-sender.c
index 45b776e85..599d9672a 100644
--- a/telepathy-glib/debug-sender.c
+++ b/telepathy-glib/debug-sender.c
@@ -22,6 +22,7 @@
#include "debug-sender.h"
#include <telepathy-glib/dbus.h>
+#include <telepathy-glib/defs.h>
#include <telepathy-glib/gtypes.h>
#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/util.h>
@@ -230,7 +231,7 @@ tp_debug_sender_constructed (GObject *object)
if (dbus_daemon != NULL)
{
tp_dbus_daemon_register_object (dbus_daemon,
- "/org/freedesktop/Telepathy/debug", debug_sender);
+ TP_DEBUG_OBJECT_PATH, debug_sender);
g_object_unref (dbus_daemon);
}
diff --git a/telepathy-glib/defs.h b/telepathy-glib/defs.h
index 3de9de35a..979b817f1 100644
--- a/telepathy-glib/defs.h
+++ b/telepathy-glib/defs.h
@@ -110,6 +110,14 @@ G_BEGIN_DECLS
#define TP_CLIENT_OBJECT_PATH_BASE "/org/freedesktop/Telepathy/Client/"
/**
+ * TP_DEBUG_OBJECT_PATH:
+ *
+ * The standard path for objects implementing the Telepathy Debug interface
+ * (#TpSvcDebug).
+ */
+#define TP_DEBUG_OBJECT_PATH "/org/freedesktop/Telepathy/debug"
+
+/**
* TP_USER_ACTION_TIME_NOT_USER_ACTION:
*
* The "user action time" used by methods like