X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Freference-v3%2Ffunc-api.md;h=aa28932adb7f55a9c3f53daa725b844bb729379f;hb=6492d061bf5753bb3bb67b771fc2f9ce0c910c2b;hp=535bff85b55fc4ce6edbe6897a6cba4f7a7bc563;hpb=fe9601cbf6bbebe9464bfbde2efd0ec278b3e243;p=src%2Fapp-framework-binder.git diff --git a/docs/reference-v3/func-api.md b/docs/reference-v3/func-api.md index 535bff85..aa28932a 100644 --- a/docs/reference-v3/func-api.md +++ b/docs/reference-v3/func-api.md @@ -58,7 +58,7 @@ void afb_api_set_userdata( * Check that it requires the API of 'name'. * If 'initialized' is not zero it requests the API to be * initialized, implying its initialization if needed. - * + * * Calling this function is only allowed within init. * * A single request allows to require multiple apis. @@ -255,13 +255,31 @@ int afb_api_rootdir_open_locale( const char *locale); ``` +### afb_api_settings + +```C +/** + * Settings of the api. + * + * Get the settings of the API. The settings are recorded + * as a JSON object. The returned object should not be modified. + * It MUST NOT be released using json_object_put. + * + * @param api the api whose settings are required + * + * @returns The setting object. + */ +struct json_object *afb_api_settings( + struct afb_api_x3 *api); +``` + ## Calls and job functions ### afb_api_call ```C /** - * Calls the 'verb' of the 'api' with the arguments 'args' and 'verb' in the name of the binding. + * Calls the 'verb' of the 'apiname' with the arguments 'args' and 'verb' in the name of the binding 'api'. * The result of the call is delivered to the 'callback' function with the 'callback_closure'. * * For convenience, the function calls 'json_object_put' for 'args'. @@ -305,7 +323,7 @@ void afb_api_call( ```C /** - * Calls the 'verb' of the 'api' with the arguments 'args' and 'verb' in the name of the binding. + * Calls the 'verb' of the 'apiname' with the arguments 'args' and 'verb' in the name of the binding 'api'. * 'result' will receive the response. * * For convenience, the function calls 'json_object_put' for 'args'. @@ -862,8 +880,10 @@ of work. /** * @deprecated try to use @ref afb_api_call instead * - * * Calls the 'verb' of the 'api' with the arguments 'args' and 'verb' in the name of the binding. - * The result of the call is delivered to the 'callback' function with the 'callback_closure'. + * Calls the 'verb' of the 'apiname' with the arguments 'args' and 'verb' + * in the name of the binding. + * The result of the call is delivered to the 'callback' function + * with the 'callback_closure'. * * For convenience, the function calls 'json_object_put' for 'args'. * Thus, in the case where 'args' should remain available after @@ -906,7 +926,8 @@ void afb_api_call_legacy( /** * @deprecated try to use @ref afb_api_call_sync instead * - * Calls the 'verb' of the 'api' with the arguments 'args' and 'verb' in the name of the binding. + * Calls the 'verb' of the 'apiname' with the arguments 'args' and 'verb' + * in the name of the binding. * 'result' will receive the response. * * For convenience, the function calls 'json_object_put' for 'args'.