[next] telepathy-glib: Add a #define for the Debug object path
Simon McVittie
smcv at kemper.freedesktop.org
Wed Apr 25 07:26:06 PDT 2012
Module: telepathy-glib
Branch: next
Commit: 6e70761bddc4def5057ccd240650a45601ce2cab
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=6e70761bddc4def5057ccd240650a45601ce2cab
Author: Will Thompson <will.thompson at collabora.co.uk>
Date: Fri Nov 26 12:34:08 2010 +0000
Add a #define for the Debug object path
---
docs/reference/telepathy-glib-sections.txt | 1 +
telepathy-glib/debug-sender.c | 3 ++-
telepathy-glib/defs.h | 8 ++++++++
3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index 09950bf..4541f8b 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 45b776e..599d967 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 3de9de3..979b817 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
More information about the telepathy-commits
mailing list