diff src/bridge/bridge_constructor/bridge_template.ini @ 2534:7da86e1633a5

core: new discoFindFeatures method which return all server services/roster entities implementing a set of features.
author Goffi <goffi@goffi.org>
date Sat, 24 Mar 2018 10:46:09 +0100
parents 81a45e7886c9
children 27539029a662
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/bridge_template.ini	Sat Mar 24 10:44:37 2018 +0100
+++ b/src/bridge/bridge_constructor/bridge_template.ini	Sat Mar 24 10:46:09 2018 +0100
@@ -734,6 +734,27 @@
 doc_param_3=%(doc_profile_key)s
 doc_return=array of tuple (entity, node identifier, name)
 
+[discoFindByFeatures]
+async=
+type=method
+category=core
+sig_in=asbbbs
+sig_out=(a{sa(sss)}a{sa(sss)}a{sa(sss)})
+param_1_default=True
+param_2_default=True
+param_3_default=True
+param_4_default=u"@DEFAULT@"
+doc=Discover items of an entity
+doc_param_0=namespaces: namespaces of the features to check
+doc_param_1=service: True to check server's services
+doc_param_2=roster: True to check connected devices from people in roster
+doc_param_3=own_jid: True to check profile's jid
+doc_param_4=%(doc_profile_key)s
+doc_return=tuple of maps of found entities full jids to their identities. Maps are in this order:
+ - services entities
+ - own entities (i.e. entities linked to profile's jid)
+ - roster entities
+
 [saveParamsTemplate]
 type=method
 category=core