forked from enlightenment/enlightenment
Make some functions static
This commit is contained in:
parent
d60a6fd16b
commit
5e7fa42b8c
|
@ -8,7 +8,7 @@
|
||||||
#include "e_mod_main.h"
|
#include "e_mod_main.h"
|
||||||
#include "input_rotation.h"
|
#include "input_rotation.h"
|
||||||
|
|
||||||
DbusAccelerometer* accelerometer_dbus;
|
static DbusAccelerometer* accelerometer_dbus;
|
||||||
|
|
||||||
DbusAccelerometer*
|
DbusAccelerometer*
|
||||||
sensor_proxy_init(void)
|
sensor_proxy_init(void)
|
||||||
|
@ -80,7 +80,10 @@ _convertible_rotation_get(const enum screen_rotation orientation);
|
||||||
int
|
int
|
||||||
_is_device_a_touch_pointer(int dev_counter, int num_properties, char **iterator);
|
_is_device_a_touch_pointer(int dev_counter, int num_properties, char **iterator);
|
||||||
|
|
||||||
Eldbus_Proxy *
|
/**
|
||||||
|
* Helper to get the interface
|
||||||
|
* */
|
||||||
|
statis Eldbus_Proxy *
|
||||||
get_dbus_interface(const char *IFACE)
|
get_dbus_interface(const char *IFACE)
|
||||||
{
|
{
|
||||||
DBG("Working on interface: %s", IFACE);
|
DBG("Working on interface: %s", IFACE);
|
||||||
|
@ -208,7 +211,13 @@ _access_bool_property(const Eldbus_Message *msg, Eldbus_Message_Iter **variant,
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
/**
|
||||||
|
* Callback definition to handle the request of the hasAccelerometer property of DBUS interface net.hadess.SensorProxy
|
||||||
|
* @param data DbusAccelerometer
|
||||||
|
* @param msg The message
|
||||||
|
* @param pending
|
||||||
|
*/
|
||||||
|
static void
|
||||||
on_has_accelerometer(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
on_has_accelerometer(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
||||||
{
|
{
|
||||||
const char *errname, *errmsg;
|
const char *errname, *errmsg;
|
||||||
|
@ -425,7 +434,14 @@ _fetch_and_rotate_screen(const char* randr_id, enum screen_rotation orientation)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
/**
|
||||||
|
* Callback definition to handle the execution of the ClaimAccelerometer() method of DBUS
|
||||||
|
* interface net.hadess.SensorProxy
|
||||||
|
* @param data not used
|
||||||
|
* @param msg The message
|
||||||
|
* @param pending
|
||||||
|
*/
|
||||||
|
static void
|
||||||
on_accelerometer_claimed(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
on_accelerometer_claimed(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
||||||
{
|
{
|
||||||
const char *errname, *errmsg;
|
const char *errname, *errmsg;
|
||||||
|
@ -439,7 +455,15 @@ on_accelerometer_claimed(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldb
|
||||||
INF("Accelerometer claimed");
|
INF("Accelerometer claimed");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
|
/**
|
||||||
|
* Callback definition to handle the execution of the ReleaseAccelerometer() method of DBUS
|
||||||
|
* interface net.hadess.SensorProxy
|
||||||
|
* @param data not used
|
||||||
|
* @param msg The message
|
||||||
|
* @param pending
|
||||||
|
*/
|
||||||
|
static void
|
||||||
on_accelerometer_released(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
on_accelerometer_released(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED)
|
||||||
{
|
{
|
||||||
const char *errname, *errmsg;
|
const char *errname, *errmsg;
|
||||||
|
|
|
@ -32,21 +32,6 @@ DbusAccelerometer* sensor_proxy_init(void);
|
||||||
void
|
void
|
||||||
sensor_proxy_shutdown(void);
|
sensor_proxy_shutdown(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* Helper to get the interface
|
|
||||||
* */
|
|
||||||
Eldbus_Proxy *
|
|
||||||
get_dbus_interface(const char *IFACE);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback definition to handle the request of the hasAccelerometer property of DBUS interface net.hadess.SensorProxy
|
|
||||||
* @param data DbusAccelerometer
|
|
||||||
* @param msg The message
|
|
||||||
* @param pending
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
on_has_accelerometer(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback definition to handle the request of the accelerometer property of DBUS interface net.hadess.SensorProxy
|
* Callback definition to handle the request of the accelerometer property of DBUS interface net.hadess.SensorProxy
|
||||||
* @param data DbusAccelerometer
|
* @param data DbusAccelerometer
|
||||||
|
@ -55,24 +40,4 @@ on_has_accelerometer(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_P
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
on_accelerometer_orientation(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED);
|
on_accelerometer_orientation(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED);
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback definition to handle the execution of the ClaimAccelerometer() method of DBUS
|
|
||||||
* interface net.hadess.SensorProxy
|
|
||||||
* @param data not used
|
|
||||||
* @param msg The message
|
|
||||||
* @param pending
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
on_accelerometer_claimed(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Callback definition to handle the execution of the ReleaseAccelerometer() method of DBUS
|
|
||||||
* interface net.hadess.SensorProxy
|
|
||||||
* @param data not used
|
|
||||||
* @param msg The message
|
|
||||||
* @param pending
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
on_accelerometer_released(void *data EINA_UNUSED, const Eldbus_Message *msg, Eldbus_Pending *pending EINA_UNUSED);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -40,10 +40,5 @@ void
|
||||||
econvertible_config_init(void);
|
econvertible_config_init(void);
|
||||||
void
|
void
|
||||||
econvertible_config_shutdown(void);
|
econvertible_config_shutdown(void);
|
||||||
//E_Config_Dialog* econvertible_config_init(Evas_Object *comp, const char*p);
|
|
||||||
void
|
|
||||||
_menu_new(Instance *inst, Evas_Event_Mouse_Down *ev);
|
|
||||||
void
|
|
||||||
_mouse_down_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event);
|
|
||||||
|
|
||||||
#endif //E_GADGET_CONVERTIBLE_E_MOD_CONFIG_H
|
#endif //E_GADGET_CONVERTIBLE_E_MOD_CONFIG_H
|
||||||
|
|
Loading…
Reference in New Issue