static GMainLoop *g_mainloop = NULL;
static gboolean verbose = FALSE;
static gboolean is_session = FALSE;
+static gchar *db_path = NULL;
/**
* @brief Handle the SIGTERM signal and quit the main loop
static GOptionEntry entries[] = {
{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Be verbose", NULL },
{ "session", 's', 0, G_OPTION_ARG_NONE, &is_session, "Bus type is session", NULL },
+ { "path", 'p', 0, G_OPTION_ARG_STRING, &db_path, "Path to database", NULL },
{ NULL }
};
}
/* path to database */
- svcdb_initialize (DB_PATH);
+ if (!db_path)
+ db_path = g_strdup (DB_PATH);
+ svcdb_initialize (db_path);
g_mainloop = g_main_loop_new (NULL, FALSE);
gdbus_get_system_connection (is_session);
svcdb_finalize ();
is_session = verbose = FALSE;
+ g_free (db_path);
+ db_path = NULL;
return ret;
}
# Default features for Tizen release
# If you want to build RPM for other Linux distro, you may need to
# touch these values for your needs.
-%if %{with tizen}
-%endif
+%bcond_with tizen
# Below features are used for unittest.
# Do not add neural network dependency to ML-Agent.
%if 0%{?_with_da_profile}
%endif
-# If it is tizen, we can export Tizen API packages.
-%if %{with tizen}
-%bcond_with tizen
-%endif
-
# Note that debug packages generate an additional build and storage cost.
# If you do not need debug packages, run '$ gbs build ... --define "_skip_debug_rpm 1"'.
%if "%{?_skip_debug_rpm}" == "1"