diff src/bridge/bridge_constructor/bridge_template.ini @ 963:723f28cd15c7

core (disco): added discoInfos and discoItems bridge methods
author Goffi <goffi@goffi.org>
date Tue, 01 Apr 2014 21:14:57 +0200
parents 71926ec2114d
children fee00f2e11c2
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Mon Mar 31 20:19:34 2014 +0200
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Tue Apr 01 21:14:57 2014 +0200
@@ -584,7 +584,7 @@
 [getMenus]
 type=method
 category=core
-sig_in= si
+sig_in=si
 sig_out=a(ssasas)
 doc=Get all additional menus
 doc_param_0=language: language in which the menu should be translated (empty string for default)
@@ -607,3 +607,24 @@
 doc_param_1=language: language in which the menu should be translated (empty string for default)
 doc_return=Translated help string
 
+[discoInfos]
+async=
+type=method
+category=core
+sig_in=ss
+sig_out=(asa(sss))
+doc=Discover infos on an entity
+doc_param_0=entity_jid: JID to discover
+doc_param_1=%(doc_profile_key)s
+doc_return=discovery data
+
+[discoItems]
+async=
+type=method
+category=core
+sig_in=ss
+sig_out=a(sss)
+doc=Discover items of an entity
+doc_param_0=entity_jid: JID to discover
+doc_param_1=%(doc_profile_key)s
+doc_return=array of tuple (entity, node identifier, name)