summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-09 16:14:00 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-03-09 16:55:49 -0800
commitdcfa337b8a4fb942341cba126bbe076775ab2ac6 (patch)
tree69ecbea4aecf8f608903988bc742919f7c4b9cbf
parentdcc8a491133ec51f50ebb27d7182ec109b47e1e5 (diff)
config: add API to configure Elm_Web backend.
-rw-r--r--src/lib/elm_config.c14
-rw-r--r--src/lib/elm_config.h27
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)
4111 edje_transition_duration_factor_set(_elm_config->transition_duration_factor); 4111 edje_transition_duration_factor_set(_elm_config->transition_duration_factor);
4112} 4112}
4113 4113
4114
4115EAPI double 4114EAPI double
4116elm_config_transition_duration_factor_get(void) 4115elm_config_transition_duration_factor_get(void)
4117{ 4116{
4118 return _elm_config->transition_duration_factor; 4117 return _elm_config->transition_duration_factor;
4119} 4118}
4120 4119
4120EAPI void
4121elm_config_web_backend_set(const char *backend)
4122{
4123 if (_elm_web_init(backend))
4124 _elm_config->web_backend = backend;
4125}
4126
4127EAPI const char *
4128elm_config_web_backend_get(void)
4129{
4130 return _elm_config->web_backend;
4131}
4132
4121void 4133void
4122_elm_config_profile_set(const char *profile) 4134_elm_config_profile_set(const char *profile)
4123{ 4135{
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);
2079EAPI double elm_config_transition_duration_factor_get(void); 2079EAPI double elm_config_transition_duration_factor_get(void);
2080 2080
2081/** 2081/**
2082 * @} 2082 * Set the backend engine used by Elm_Web widget
2083 *
2084 * This function set the name of the external module used by
2085 * elm_web to render web page.
2086 *
2087 * @param backend The new backend to use.
2088 *
2089 * @since 1.18
2090 * @see elm_config_web_backend_get()
2083 */ 2091 */
2092EAPI void elm_config_web_backend_set(const char *backend);
2084 2093
2094/**
2095 * Get the currently set backend engine used by Elm_Web widget
2096 *
2097 * This function get the name of the external module used by
2098 * elm_web to render web page.
2099 *
2100 * @return The new backend to use.
2101 *
2102 * @since 1.18
2103 * @see elm_config_web_backend_set()
2104 */
2105EAPI const char *elm_config_web_backend_get(void);
2106
2107/**
2108 * @}
2109 */