summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-10-01 16:29:37 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-10-01 16:29:37 +0000
commit98f6aa93114eb9529bc8da961789a97e7f76e853 (patch)
treec2613e71492404ced8036ef24122b14520f30e68 /epan
parent0c2f1829e17cfc1f8c825571c87234e9c3523314 (diff)
downloadwireshark-98f6aa93114eb9529bc8da961789a97e7f76e853.tar.gz
Add a new right-click popup menu for the statusbar profiles for easy functions
to create new, copy, delete and rename configuration profiles. svn path=/trunk/; revision=34312
Diffstat (limited to 'epan')
-rw-r--r--epan/filesystem.c6
-rw-r--r--epan/filesystem.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c
index b5e149029f..283ea30dd7 100644
--- a/epan/filesystem.c
+++ b/epan/filesystem.c
@@ -965,6 +965,12 @@ get_profile_name(void)
}
}
+gboolean
+is_default_profile(void)
+{
+ return (!persconfprofile || strcmp(persconfprofile, DEFAULT_PROFILE) == 0) ? TRUE : FALSE;
+}
+
void
profile_store_persconffiles(gboolean store)
{
diff --git a/epan/filesystem.h b/epan/filesystem.h
index ce5cc386bc..28d3ee926a 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -104,6 +104,11 @@ extern void set_profile_name(const gchar *profilename);
extern const char *get_profile_name(void);
/*
+ * Check if current profile is default profile.
+ */
+extern gboolean is_default_profile(void);
+
+/*
* Get the directory used to store configuration profile directories.
*/
extern const char *get_profiles_dir(void);