summaryrefslogtreecommitdiffstats
path: root/ui/profile.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /ui/profile.h
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/profile.h')
-rw-r--r--ui/profile.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/ui/profile.h b/ui/profile.h
index ebec39b7..9fc89834 100644
--- a/ui/profile.h
+++ b/ui/profile.h
@@ -13,6 +13,8 @@
#ifndef __PROFILE_H__
#define __PROFILE_H__
+#include <glib.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -33,9 +35,12 @@ typedef struct {
char *name; /* profile name */
char *reference; /* profile reference */
int status;
- gboolean is_global;
- gboolean from_global;
- gboolean is_import;
+ bool is_global;
+ bool from_global;
+ bool is_import;
+ // Settings
+ bool prefs_changed;
+ char *auto_switch_filter;
} profile_def;
/** @file
@@ -59,7 +64,7 @@ void init_profile_list(void);
* @return A pointer to the new profile list
*/
GList *add_to_profile_list(const char *name, const char *parent, int status,
- gboolean is_global, gboolean from_global, gboolean is_import);
+ bool is_global, bool from_global, bool is_import);
/** Refresh the current (non-edited) profile list.
*/
@@ -69,7 +74,7 @@ void copy_profile_list(void);
*
* @param edit_list Remove edited entries
*/
-void empty_profile_list(gboolean edit_list);
+void empty_profile_list(bool edit_list);
/** Remove an entry from the profile list.
*
@@ -93,7 +98,7 @@ GList * edited_profile_list(void);
* @return NULL if the operation was successful or an error message otherwise.
* The error message must be freed by the caller.
*/
-gchar *apply_profile_changes(void);
+char *apply_profile_changes(void);
/** Given a profile name, return the name of its parent profile.
*
@@ -101,21 +106,21 @@ gchar *apply_profile_changes(void);
*
* @return Parent profile name
*/
-const gchar *get_profile_parent (const gchar *profilename);
+const char *get_profile_parent(const char *profilename);
/** Check the validity of a profile name.
*
* @param name Profile name
* @return NULL if the name is valid or an error message otherwise.
*/
-gchar *profile_name_is_valid(const gchar *name);
+char *profile_name_is_valid(const char *name);
/** Remove the current profile.
*
- * @return TRUE if the current profile exists and was successfully deleted
- * or FALSE otherwise.
+ * @return true if the current profile exists and was successfully deleted
+ * or false otherwise.
*/
-gboolean delete_current_profile(void);
+bool delete_current_profile(void);
#ifdef __cplusplus
}