Add logic to create shortcut db 94/147094/1
authorSeungha Son <seungha.son@samsung.com>
Fri, 1 Sep 2017 02:20:10 +0000 (11:20 +0900)
committerSeungha Son <seungha.son@samsung.com>
Fri, 1 Sep 2017 02:20:53 +0000 (11:20 +0900)
Related changes:
 shortcut : https://review.tizen.org/gerrit/#/c/147092/

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I8484569ce5c8519ddd43c5ceb77fdd3255e767db

src/shortcut_service.c

index 904a3b3..e74ae5b 100755 (executable)
@@ -362,6 +362,12 @@ HAPI int shortcut_service_init(void)
        _monitoring_hash = g_hash_table_new(g_direct_hash, g_direct_equal);
        _invocation_hash = g_hash_table_new_full(g_str_hash, g_str_equal, free, NULL);
 
+       result = shortcut_db_init();
+       if (result != SHORTCUT_ERROR_NONE) {
+               ERR("Failed to init DB[%d]", result);
+               return result;
+       }
+
        result = shortcut_register_dbus_interface();
        if (result != SERVICE_COMMON_ERROR_NONE) {
                ERR("Failed to register dbus interface [%d]", result);