diff src/bridge/dbus_bridge.py @ 2443:81a45e7886c9

core: added a mechanism to associate short names to namespaces: - new internal registerNamespace can be used by a plugin to associate a short name to a namespace - new NamespacesGet bridge method retrieve those associations
author Goffi <goffi@goffi.org>
date Sun, 19 Nov 2017 16:46:07 +0100
parents 8b37a62336c3
children 0046283a285d
line wrap: on
line diff
--- a/src/bridge/dbus_bridge.py	Sun Nov 19 16:41:59 2017 +0100
+++ b/src/bridge/dbus_bridge.py	Sun Nov 19 16:46:07 2017 +0100
@@ -384,6 +384,12 @@
         return self._callback("messageSend", unicode(to_jid), message, subject, unicode(mess_type), extra, unicode(profile_key), callback=callback, errback=errback)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
+                         in_signature='', out_signature='a{ss}',
+                         async_callbacks=None)
+    def namespacesGet(self, ):
+        return self._callback("namespacesGet", )
+
+    @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='sis', out_signature='',
                          async_callbacks=None)
     def paramsRegisterApp(self, xml, security_limit=-1, app=''):