static int wrist_up_total_cnt;
static int wrist_up_lcdon_cnt;
+static int wrist_up_algo;
static GDBusNodeInfo *introspection_data = NULL;
static guint owner_id;
" <method name='wristup_total_cnt'>"
" <arg type='i' name='response' direction='out'/>"
" </method>"
+" <method name='wristup_algo'>"
+" <arg type='i' name='response' direction='out'/>"
+" </method>"
" </interface>"
"</node>";
} else if (g_strcmp0(method_name, "wristup_total_cnt") == 0) {
_D("wristup_total_cnt called, %d", wrist_up_total_cnt);
ret = wrist_up_total_cnt;
+ } else if (g_strcmp0(method_name, "wristup_algo") == 0) {
+ _D("wristup_algo called, %d", wrist_up_algo);
+ ret = wrist_up_algo;
} else {
_D("No matched method call");
ret = DBUS_FAILED;
wrist_up_total_cnt = 0;
}
+void set_wrist_up_algo(int mode)
+{
+ wrist_up_algo = mode;
+}
+
void init_dbus(void)
{
#ifndef GLIB_VERSION_2_36
int get_total_count(void);
void increase_total_count(void);
void reset_total_count(void);
+void set_wrist_up_algo(int mode);
void init_dbus(void);
void fini_dbus(void);