static char buf[BUF_SIZE];
static int now;
-void _input_password(Evas_Object *ly, const char *txt)
-{
- char tmp[BUF_SIZE] = { 0, };
-
- if (now >= 4 || isUnlocked)
- return;
-
- snprintf(tmp, BUF_SIZE, "%s%s", buf, txt);
- strncpy(buf,tmp,BUF_SIZE);
- now++;
-
- if (!strcmp(STR_PASSWORD, buf)) {
- _dbus_send_sys_lock_unlock_signal();
- isUnlocked = true;
- _update_password_view(ly, 5);
- } else {
- _update_password_view(ly, now);
- }
-}
-
-void _clear_password(Evas_Object *ly)
-{
- if (now <= 0)
- return;
-
- now--;
- buf[now] = '\0';
-
- _update_password_view(ly, now);
-}
-
-void _clear_all_password(Evas_Object *ly)
-{
- memset(buf, 0, BUF_SIZE);
- now = 0;
-
- _update_password_view(ly, now);
-}
-
-void _update_password_view(Evas_Object *ly, int num)
+static void _update_password_view(Evas_Object *ly, int num)
{
if (num == 0)
elm_object_part_text_set(ly, "sw.entry", "_ _ _ _");
elm_object_part_text_set(ly, "sw.entry", "= Password OK! =");
}
-void _dbus_send_sys_lock_unlock_signal(void)
+static void _dbus_send_sys_lock_unlock_signal(void)
{
int ret = 0;
E_DBus_Connection *conn;
DBG("%s-%s", SYS_LOCK_INTERFACE_UNLOCK, SYS_LOCK_MEMBER_UNLOCK);
}
-int _dbus_receive_lazy_mount_status(void (*changed_cb)(void *data, DBusMessage *msg), void *data)
+static int _dbus_receive_lazy_mount_status(void (*changed_cb)(void *data, DBusMessage *msg), void *data)
{
E_DBus_Connection *conn;
E_DBus_Signal_Handler *handler;
}
}
-char *_get_resource_full_path(const char *file_path)
+static void _input_password(Evas_Object *ly, const char *txt)
+{
+ char tmp[BUF_SIZE] = { 0, };
+
+ if (now >= 4 || isUnlocked)
+ return;
+
+ snprintf(tmp, BUF_SIZE, "%s%s", buf, txt);
+ strncpy(buf,tmp,BUF_SIZE);
+ now++;
+
+ if (!strcmp(STR_PASSWORD, buf)) {
+ _dbus_send_sys_lock_unlock_signal();
+ isUnlocked = true;
+ _update_password_view(ly, 5);
+ } else {
+ _update_password_view(ly, now);
+ }
+}
+
+static void _clear_password(Evas_Object *ly)
+{
+ if (now <= 0)
+ return;
+
+ now--;
+ buf[now] = '\0';
+
+ _update_password_view(ly, now);
+}
+
+static void _clear_all_password(Evas_Object *ly)
+{
+ memset(buf, 0, BUF_SIZE);
+ now = 0;
+
+ _update_password_view(ly, now);
+}
+
+static char *_get_resource_full_path(const char *file_path)
{
char *ret = NULL;
char full_path[PATH_MAX] = { 0, };
return ret;
}
-Evas_Object *_window_create(void)
+static Evas_Object *_window_create(void)
{
Evas_Object *win = elm_win_add(NULL, "FOTALOCK", ELM_WIN_BASIC);
char *full_path = NULL;