From 9126d1362112e78c622adb15fb4d9837c6800704 Mon Sep 17 00:00:00 2001
From: Simon McVittie
Date: Thu, 7 Nov 2013 15:41:33 +0000
Subject: [PATCH 1/2] Re-namespace to im.telepathy.v1
---
.gitignore | 4 ++--
data/Makefile.am | 2 +-
data/im.telepathy.v1.ConnectionManager.idle.service.in | 3 +++
data/im.telepathy1.ConnectionManager.idle.service.in | 3 ---
extensions/Connection_Interface_Renaming.xml | 18 +++++++++---------
src/idle-im-channel.c | 2 +-
src/idle-muc-channel.c | 2 +-
src/idle-roomlist-channel.c | 6 +++---
tests/twisted/constants.py | 2 +-
tests/twisted/tools/Makefile.am | 4 ++--
tests/twisted/tools/idle.service.in | 2 +-
11 files changed, 24 insertions(+), 24 deletions(-)
create mode 100644 data/im.telepathy.v1.ConnectionManager.idle.service.in
delete mode 100644 data/im.telepathy1.ConnectionManager.idle.service.in
diff --git a/.gitignore b/.gitignore
index f0944db..9d7bd59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -44,7 +44,7 @@ Makefile.in
*-bindings.[ch]
*-gen.h
-data/im.telepathy1.ConnectionManager.idle.service
+data/im.telepathy.v1.ConnectionManager.idle.service
extensions/_gen
extensions/extensions.html
@@ -68,7 +68,7 @@ tests/twisted/config.py
tests/twisted/idle-twisted-tests.list
tests/twisted/tools/exec-with-log.sh
tests/twisted/tools/idle-testing.log
-tests/twisted/tools/im.telepathy1.ConnectionManager.idle.service
+tests/twisted/tools/im.telepathy.v1.ConnectionManager.idle.service
tests/twisted/run-test.sh
tests/twisted/test-suite.log
tests/twisted/tools/tmp-session-bus.conf
diff --git a/data/Makefile.am b/data/Makefile.am
index 1a5ecf6..edb8f6d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,7 +6,7 @@ manager_DATA = idle.manager
BUILT_FILES = $(service_in_files:.service.in=.service)
servicedir = $(DBUS_SERVICES_DIR)
-service_in_files = im.telepathy1.ConnectionManager.idle.service.in
+service_in_files = im.telepathy.v1.ConnectionManager.idle.service.in
service_DATA = $(BUILT_FILES)
CLEANFILES = $(BUILT_FILES)
diff --git a/data/im.telepathy.v1.ConnectionManager.idle.service.in b/data/im.telepathy.v1.ConnectionManager.idle.service.in
new file mode 100644
index 0000000..5c7a539
--- /dev/null
+++ b/data/im.telepathy.v1.ConnectionManager.idle.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=im.telepathy.v1.ConnectionManager.idle
+Exec=@libexecdir@/telepathy-idle
diff --git a/data/im.telepathy1.ConnectionManager.idle.service.in b/data/im.telepathy1.ConnectionManager.idle.service.in
deleted file mode 100644
index 4bf24de..0000000
--- a/data/im.telepathy1.ConnectionManager.idle.service.in
+++ /dev/null
@@ -1,3 +0,0 @@
-[D-BUS Service]
-Name=im.telepathy1.ConnectionManager.idle
-Exec=@libexecdir@/telepathy-idle
diff --git a/extensions/Connection_Interface_Renaming.xml b/extensions/Connection_Interface_Renaming.xml
index 0c7ae5d..e4bf0e7 100644
--- a/extensions/Connection_Interface_Renaming.xml
+++ b/extensions/Connection_Interface_Renaming.xml
@@ -18,9 +18,9 @@ Lesser General Public License for more details.
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-
+
@@ -51,7 +51,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
a channel which has the groups interface, it will be removed from
the channel and the new handle will be added. The resulting
MembersChanged
+ namespace="im.telepathy.v1.Channel.Interface.Group">MembersChanged
signal must be emitted after the
Renamed signal; the reason should be
RENAMED.
@@ -74,17 +74,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Request that the user's own identifier is changed on the server.
If successful, a Renamed signal will
be emitted for the current "self handle" as returned by GetSelfHandle.
+ namespace="im.telepathy.v1.Connection">GetSelfHandle.
It is protocol-dependent how the identifier that's actually
used will be derived from the supplied identifier; some sort of
normalization might take place.
-
-
-
-
-
+
+
+
+
+
diff --git a/src/idle-im-channel.c b/src/idle-im-channel.c
index 3e48944..76c7f4b 100644
--- a/src/idle-im-channel.c
+++ b/src/idle-im-channel.c
@@ -182,7 +182,7 @@ idle_im_channel_get_interfaces (TpBaseChannel *channel)
* idle_im_channel_send
*
* Indirectly implements (via TpMessageMixin) D-Bus method Send on interface
- * im.telepathy1.Channel.Type.Text and D-Bus method SendMessage on
+ * im.telepathy.v1.Channel.Type.Text and D-Bus method SendMessage on
* Channel.Interface.Messages
*/
static void
diff --git a/src/idle-muc-channel.c b/src/idle-muc-channel.c
index f67eedd..ed97cfa 100644
--- a/src/idle-muc-channel.c
+++ b/src/idle-muc-channel.c
@@ -1434,7 +1434,7 @@ static void idle_muc_channel_provide_password (TpSvcChannelInterfacePassword1 *i
* idle_muc_channel_send
*
* Indirectly implements (via TpMessageMixin) D-Bus method Send on interface
- * im.telepathy1.Channel.Type.Text and D-Bus method SendMessage on
+ * im.telepathy.v1.Channel.Type.Text and D-Bus method SendMessage on
* Channel.Interface.Messages
*/
static void
diff --git a/src/idle-roomlist-channel.c b/src/idle-roomlist-channel.c
index eb6bc4d..a07e7b4 100644
--- a/src/idle-roomlist-channel.c
+++ b/src/idle-roomlist-channel.c
@@ -222,7 +222,7 @@ idle_roomlist_channel_close (TpBaseChannel *channel)
* idle_roomlist_channel_get_listing_rooms
*
* Implements D-Bus method GetListingRooms
- * on interface im.telepathy1.Channel.Type.RoomList
+ * on interface im.telepathy.v1.Channel.Type.RoomList
*/
static void
idle_roomlist_channel_get_listing_rooms (TpSvcChannelTypeRoomList1 *iface,
@@ -240,7 +240,7 @@ idle_roomlist_channel_get_listing_rooms (TpSvcChannelTypeRoomList1 *iface,
* idle_roomlist_channel_list_rooms
*
* Implements D-Bus method ListRooms
- * on interface im.telepathy1.Channel.Type.RoomList
+ * on interface im.telepathy.v1.Channel.Type.RoomList
*/
static void
idle_roomlist_channel_list_rooms (TpSvcChannelTypeRoomList1 *iface,
@@ -261,7 +261,7 @@ idle_roomlist_channel_list_rooms (TpSvcChannelTypeRoomList1 *iface,
* idle_roomlist_channel_stop_listing
*
* Implements D-Bus method StopListing
- * on interface im.telepathy1.Channel.Type.RoomList
+ * on interface im.telepathy.v1.Channel.Type.RoomList
*/
static void
idle_roomlist_channel_stop_listing (TpSvcChannelTypeRoomList1 *iface,
diff --git a/tests/twisted/constants.py b/tests/twisted/constants.py
index e72c592..a9181ac 100644
--- a/tests/twisted/constants.py
+++ b/tests/twisted/constants.py
@@ -22,7 +22,7 @@ Some handy constants for other tests to share and enjoy.
from dbus import PROPERTIES_IFACE, INTROSPECTABLE_IFACE
-PREFIX = "im.telepathy1"
+PREFIX = "im.telepathy.v1"
PATH_PREFIX = '/' + PREFIX.replace('.', '/')
tp_name_prefix = PREFIX
diff --git a/tests/twisted/tools/Makefile.am b/tests/twisted/tools/Makefile.am
index e987989..e21c97a 100644
--- a/tests/twisted/tools/Makefile.am
+++ b/tests/twisted/tools/Makefile.am
@@ -9,12 +9,12 @@ exec-with-log.sh: exec-with-log.sh.in
# We don't use the full filename for the .in because > 99 character filenames
# in tarballs are non-portable (and automake 1.8 doesn't let us build
# non-archaic tarballs)
-im.telepathy1.ConnectionManager.%.service: %.service.in
+im.telepathy.v1.ConnectionManager.%.service: %.service.in
sed -e "s|[@]abs_top_builddir[@]|@abs_top_builddir@|g" $< > $@
# D-Bus service file for testing
service_in_files = idle.service.in
-service_files = im.telepathy1.ConnectionManager.idle.service
+service_files = im.telepathy.v1.ConnectionManager.idle.service
# D-Bus config file for testing
conf_in_files = tmp-session-bus.conf.in
diff --git a/tests/twisted/tools/idle.service.in b/tests/twisted/tools/idle.service.in
index f3c542b..d7c9596 100644
--- a/tests/twisted/tools/idle.service.in
+++ b/tests/twisted/tools/idle.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
-Name=im.telepathy1.ConnectionManager.idle
+Name=im.telepathy.v1.ConnectionManager.idle
Exec=@abs_top_builddir@/tests/twisted/tools/exec-with-log.sh
--
1.8.4.2