src/include/e_comp_wl_capture.h \
src/include/e_service_gesture.h \
src/include/e_service_quickpanel.h \
-src/include/e_service_softkey.h \
src/include/e_service_virtual_touch.h \
src/include/e_policy.h \
src/include/e_policy_conformant.h \
} \
} while (0)
+struct _E_Service_Softkey
+{
+ E_Zone *zone;
+ E_Client *ec;
+ struct wl_resource *wl_res;
+ Evas_Object *handler_obj;
+ E_Policy_Softkey_Expand expand;
+ E_Policy_Softkey_Opacity opacity;
+ Eina_List *intercept_hooks;
+ Eina_Bool show_block;
+
+ Eina_List *events;
+
+ // view listener
+ struct wl_listener show_listener;
+ struct wl_listener hide_listener;
+};
+
typedef struct _E_Service_Softkey_Pending_Visible_Request
{
E_Client *ec;
static E_Service_Softkey_Funcs *_e_softkey_service_funcs = NULL;
static E_Service_Softkey_Pending_Request _e_softkey_service_pending_req;
-E_API Eina_Bool
+EINTERN Eina_Bool
e_service_softkey_module_func_set(E_Service_Softkey_Funcs *fp)
{
EINA_SAFETY_ON_FALSE_RETURN_VAL(e_config->use_softkey_service, EINA_FALSE);
return EINA_TRUE;
}
-E_API Eina_Bool
+EINTERN Eina_Bool
e_service_softkey_module_func_unset(void)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(_e_softkey_service_funcs, EINA_FALSE);
return EINA_TRUE;
}
-E_API E_Service_Softkey *
+EINTERN E_Service_Softkey *
e_service_softkey_add(E_Zone *zone, E_Client *ec)
{
ELOGF("SOFTKEY_SRV", "%s (zone:%p)", ec, __func__, zone);
return softkey_service;
}
-E_API void
+EINTERN void
e_service_softkey_del(E_Service_Softkey *softkey_service)
{
ELOGF("SOFTKEY_SRV", "%s (softkey_service:%p)", NULL, __func__, softkey_service);
}
-E_API Eina_Bool
+EINTERN Eina_Bool
e_service_softkey_wl_resource_set(E_Service_Softkey *softkey_service, struct wl_resource *wl_res)
{
ELOGF("SOFTKEY_SRV", "%s (softkey_service:%p, res:%p)", NULL, __func__, softkey_service, wl_res);
return EINA_TRUE;
}
-E_API struct wl_resource *
+EINTERN struct wl_resource *
e_service_softkey_wl_resource_get(E_Service_Softkey *softkey_service)
{
ELOGF("SOFTKEY_SRV", "%s (softkey_service:%p)", NULL, __func__, softkey_service);
return EINA_TRUE;
}
-E_API E_Service_Softkey *
+EINTERN E_Service_Softkey *
e_service_softkey_get(E_Zone *zone)
{
if (_e_softkey_service_funcs && _e_softkey_service_funcs->softkey_service_get)
#define E_SERVICE_SOFTKEY_INTERN_H
#include "e_intern.h"
-#include "e_service_softkey.h"
+#include "e_policy_softkey_intern.h"
+
+typedef struct _E_Service_Softkey E_Service_Softkey;
+typedef struct _E_Service_Softkey_Funcs E_Service_Softkey_Funcs;
+
+struct _E_Service_Softkey_Funcs
+{
+ E_Service_Softkey* (*softkey_service_add)(E_Zone *zone, E_Client *ec);
+ void (*softkey_service_del)(E_Service_Softkey *softkey);
+ Eina_Bool (*softkey_service_wl_resource_set)(E_Service_Softkey *softkey, struct wl_resource *wl_res);
+ struct wl_resource* (*softkey_service_wl_resource_get)(E_Service_Softkey *softkey);
+ void (*softkey_service_client_set)(E_Client *ec);
+ void (*softkey_service_client_unset)(E_Client *ec);
+ void (*softkey_service_show)(E_Service_Softkey *softkey);
+ void (*softkey_service_hide)(E_Service_Softkey *softkey);
+ void (*softkey_service_visible_set)(E_Service_Softkey *softkey, int visible);
+ int (*softkey_service_visible_get)(E_Service_Softkey *softkey);
+ void (*softkey_service_expand_set)(E_Service_Softkey *softkey, E_Policy_Softkey_Expand expand);
+ Eina_Bool (*softkey_service_expand_get)(E_Service_Softkey *softkey, E_Policy_Softkey_Expand *expand);
+ void (*softkey_service_opacity_set)(E_Service_Softkey *softkey, E_Policy_Softkey_Opacity opacity);
+ Eina_Bool (*softkey_service_opacity_get)(E_Service_Softkey *softkey, E_Policy_Softkey_Opacity *opacity);
+ E_Service_Softkey* (*softkey_service_get)(E_Zone *zone);
+ Eina_Bool (*softkey_service_handler_region_set)(E_Client *ec, int angle, Eina_Tiler *tiler);
+};
+
+EINTERN Eina_Bool e_service_softkey_module_func_set(E_Service_Softkey_Funcs *fp);
+EINTERN Eina_Bool e_service_softkey_module_func_unset(void);
+
+EINTERN E_Service_Softkey *e_service_softkey_add(E_Zone *zone, E_Client *ec);
+EINTERN void e_service_softkey_del(E_Service_Softkey *softkey);
+
+EINTERN Eina_Bool e_service_softkey_wl_resource_set(E_Service_Softkey *softkey, struct wl_resource *wl_res);
+EINTERN struct wl_resource *e_service_softkey_wl_resource_get(E_Service_Softkey *softkey);
+
+EINTERN E_Service_Softkey *e_service_softkey_get(E_Zone *zone);
EINTERN void e_service_softkey_client_set(E_Client *ec);
EINTERN void e_service_softkey_client_unset(E_Client *ec);
+++ /dev/null
-#ifndef E_SERVICE_SOFTKEY_H
-#define E_SERVICE_SOFTKEY_H
-
-#include <e_types.h>
-#include <e_policy.h>
-
-typedef struct _E_Service_Softkey E_Service_Softkey;
-typedef struct _E_Service_Softkey_Funcs E_Service_Softkey_Funcs;
-
-struct _E_Service_Softkey
-{
- E_Zone *zone;
- E_Client *ec;
- struct wl_resource *wl_res;
- Evas_Object *handler_obj;
- E_Policy_Softkey_Expand expand;
- E_Policy_Softkey_Opacity opacity;
- Eina_List *intercept_hooks;
- Eina_Bool show_block;
-
- Eina_List *events;
-
- // view listener
- struct wl_listener show_listener;
- struct wl_listener hide_listener;
-};
-
-struct _E_Service_Softkey_Funcs
-{
- E_Service_Softkey* (*softkey_service_add)(E_Zone *zone, E_Client *ec);
- void (*softkey_service_del)(E_Service_Softkey *softkey);
- Eina_Bool (*softkey_service_wl_resource_set)(E_Service_Softkey *softkey, struct wl_resource *wl_res);
- struct wl_resource* (*softkey_service_wl_resource_get)(E_Service_Softkey *softkey);
- void (*softkey_service_client_set)(E_Client *ec);
- void (*softkey_service_client_unset)(E_Client *ec);
- void (*softkey_service_show)(E_Service_Softkey *softkey);
- void (*softkey_service_hide)(E_Service_Softkey *softkey);
- void (*softkey_service_visible_set)(E_Service_Softkey *softkey, int visible);
- int (*softkey_service_visible_get)(E_Service_Softkey *softkey);
- void (*softkey_service_expand_set)(E_Service_Softkey *softkey, E_Policy_Softkey_Expand expand);
- Eina_Bool (*softkey_service_expand_get)(E_Service_Softkey *softkey, E_Policy_Softkey_Expand *expand);
- void (*softkey_service_opacity_set)(E_Service_Softkey *softkey, E_Policy_Softkey_Opacity opacity);
- Eina_Bool (*softkey_service_opacity_get)(E_Service_Softkey *softkey, E_Policy_Softkey_Opacity *opacity);
- E_Service_Softkey* (*softkey_service_get)(E_Zone *zone);
- Eina_Bool (*softkey_service_handler_region_set)(E_Client *ec, int angle, Eina_Tiler *tiler);
-};
-
-
-E_API Eina_Bool e_service_softkey_module_func_set(E_Service_Softkey_Funcs *fp);
-E_API Eina_Bool e_service_softkey_module_func_unset(void);
-
-E_API E_Service_Softkey *e_service_softkey_add(E_Zone *zone, E_Client *ec);
-E_API void e_service_softkey_del(E_Service_Softkey *softkey);
-
-E_API Eina_Bool e_service_softkey_wl_resource_set(E_Service_Softkey *softkey, struct wl_resource *wl_res);
-E_API struct wl_resource *e_service_softkey_wl_resource_get(E_Service_Softkey *softkey);
-
-E_API E_Service_Softkey *e_service_softkey_get(E_Zone *zone);
-
-#endif