diff sat/bridge/bridge_constructor/bridge_template.ini @ 3123:130f9cb6e0ab

core (memory/params): added `extra` argument to filter out params notably in `getParamsUI`: In some case, it may be desirable for a frontend to not expose some parameters to user (e.g. it is the case on Android with the `autoconnect_backend` parameter). An new `extra` parameter has been added to a couple of parameters method for that: it can contain the `ignore` key with a list of [category, name] of parameters to skip.
author Goffi <goffi@goffi.org>
date Sat, 25 Jan 2020 21:08:40 +0100
parents 7574f795bd1e
children d10b2368684e
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/bridge_template.ini	Sat Jan 25 21:08:39 2020 +0100
+++ b/sat/bridge/bridge_constructor/bridge_template.ini	Sat Jan 25 21:08:40 2020 +0100
@@ -593,28 +593,34 @@
 async=
 type=method
 category=code
-sig_in=sis
+sig_in=sisss
 sig_out=a{ss}
 param_1_default=-1
-param_2_default="@DEFAULT@"
+param_2_default=""
+param_3_default=""
+param_4_default="@DEFAULT@"
 doc=Get "attribute" for all params of a category
 doc_param_0=category: as for [setParam]
 doc_param_1=%(doc_security_limit)s
-doc_param_2=%(doc_profile_key)s
+doc_param_2=app: name of the frontend requesting the parameters, or '' to get all parameters
+doc_param_3=extra: extra options/filters
+doc_param_4=%(doc_profile_key)s
 
 [getParamsUI]
 async=
 type=method
 category=core
-sig_in=iss
+sig_in=isss
 sig_out=s
 param_0_default=-1
 param_1_default=''
-param_2_default="@DEFAULT@"
+param_2_default=''
+param_3_default="@DEFAULT@"
 doc=Return a SàT XMLUI for parameters, eventually restrict the result to the parameters concerning a given frontend
 doc_param_0=%(doc_security_limit)s
 doc_param_1=app: name of the frontend requesting the parameters, or '' to get all parameters
-doc_param_2=%(doc_profile_key)s
+doc_param_2=extra: extra options/filters
+doc_param_3=%(doc_profile_key)s
 
 [getParamsCategories]
 type=method