diff options
author | 2016-08-31 14:13:54 +0200 | |
---|---|---|
committer | 2016-08-31 14:13:54 +0200 | |
commit | 7c7d610ccbd7e30204501622ebee6690aef5af0c (patch) | |
tree | 1fec77cfe24934610dd1393a957cd601ac73c260 /src/afb-common.h | |
parent | 335959621b8ffa33f66f55e0dea1c08aaea75775 (diff) |
bindings: adds ability to use data of applications
The two new verbs 'afb_daemon_rootdir_get_fd' and
'afb_daemon_rootdir_open_locale' allow the bindings to retrieve
its installed global data.
Change-Id: I369997d9e59402a413a929aa650c48613f034183
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-common.h')
-rw-r--r-- | src/afb-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afb-common.h b/src/afb-common.h index 4d6327c1..676b3ddc 100644 --- a/src/afb-common.h +++ b/src/afb-common.h @@ -24,3 +24,10 @@ extern struct sd_event *afb_common_get_event_loop(); extern struct sd_bus *afb_common_get_user_bus(); extern struct sd_bus *afb_common_get_system_bus(); +extern void afb_common_default_locale_set(const char *locale); +extern const char *afb_common_default_locale_get(); + +extern int afb_common_rootdir_set(const char *rootdir); +extern int afb_common_rootdir_get_fd(); +extern int afb_common_rootdir_open_locale(const char *filename, int flags, const char *locale); + |