diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-09 16:14:00 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-03-09 16:55:49 -0800 |
commit | dcfa337b8a4fb942341cba126bbe076775ab2ac6 (patch) | |
tree | 69ecbea4aecf8f608903988bc742919f7c4b9cbf | |
parent | dcc8a491133ec51f50ebb27d7182ec109b47e1e5 (diff) | |
download | elementary-dcfa337b8a4fb942341cba126bbe076775ab2ac6.tar.gz |
config: add API to configure Elm_Web backend.
-rw-r--r-- | src/lib/elm_config.c | 14 | ||||
-rw-r--r-- | src/lib/elm_config.h | 27 |
2 files changed, 39 insertions, 2 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index bf5a3a34f..2176432e1 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -4111,13 +4111,25 @@ elm_config_transition_duration_factor_set(double factor) edje_transition_duration_factor_set(_elm_config->transition_duration_factor); } - EAPI double elm_config_transition_duration_factor_get(void) { return _elm_config->transition_duration_factor; } +EAPI void +elm_config_web_backend_set(const char *backend) +{ + if (_elm_web_init(backend)) + _elm_config->web_backend = backend; +} + +EAPI const char * +elm_config_web_backend_get(void) +{ + return _elm_config->web_backend; +} + void _elm_config_profile_set(const char *profile) { diff --git a/src/lib/elm_config.h b/src/lib/elm_config.h index 746a171bb..0283dfca3 100644 --- a/src/lib/elm_config.h +++ b/src/lib/elm_config.h @@ -2079,6 +2079,31 @@ EAPI void elm_config_transition_duration_factor_set(double factor); EAPI double elm_config_transition_duration_factor_get(void); /** - * @} + * Set the backend engine used by Elm_Web widget + * + * This function set the name of the external module used by + * elm_web to render web page. + * + * @param backend The new backend to use. + * + * @since 1.18 + * @see elm_config_web_backend_get() */ +EAPI void elm_config_web_backend_set(const char *backend); +/** + * Get the currently set backend engine used by Elm_Web widget + * + * This function get the name of the external module used by + * elm_web to render web page. + * + * @return The new backend to use. + * + * @since 1.18 + * @see elm_config_web_backend_set() + */ +EAPI const char *elm_config_web_backend_get(void); + +/** + * @} + */ |