From f405913a9a4343fdacd3814b3ea380165d235846 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:34:17 -0600 Subject: Adding in the setup function. --- src/default-applications.c | 12 +++++++++++- src/default-applications.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) 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__ */ -- cgit v1.2.3