diff options
-rw-r--r-- | src/default-applications.c | 12 | ||||
-rw-r--r-- | src/default-applications.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/default-applications.c b/src/default-applications.c index 6aca047..f924702 100644 --- a/src/default-applications.c +++ b/src/default-applications.c @@ -16,7 +16,7 @@ struct default_db_t default_db[] = { {NULL, NULL} }; -struct default_db_t * +static struct default_db_t * get_default_helper (gchar * desktop_path) { g_return_val_if_fail(desktop_path != NULL, NULL); @@ -48,3 +48,13 @@ get_default_name (gchar * desktop_path) return NULL; return db->name; } + +const gchar * +get_default_setup (gchar * desktop_path) +{ + struct default_db_t * db = get_default_helper(desktop_path); + + if (db == NULL) + return NULL; + return db->setupname; +} diff --git a/src/default-applications.h b/src/default-applications.h index 7769455..79d6947 100644 --- a/src/default-applications.h +++ b/src/default-applications.h @@ -3,6 +3,7 @@ #define DEFAULT_APPLICATIONS_H__ 1 const gchar * get_default_name (gchar * desktop_path); +const gchar * get_default_setup (gchar * desktop_path); #endif /* DEFAULT_APPLICATIONS_H__ */ |