core (disco): added discoInfos and discoItems bridge methods

This commit is contained in:
Goffi 2014-04-01 21:14:57 +02:00
commit e95d04b69e

View file

@ -584,7 +584,7 @@ doc_return=dict with progress information:
[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_0=menu_id: id of the menu (same as callback_id)
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)