| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
profile.h
Go to the documentation of this file.
1
12
13#ifndef __PROFILE_H__
14#define __PROFILE_H__
15
16#include <glib.h>
17
18#ifdef __cplusplus
19 extern "C" {
20#endif /* __cplusplus */
21
25 typedef struct {
26 char *name;
27 char *reference;
28 bool is_global;
29
30 /* Settings */
31 char *auto_switch_filter;
32} profile_def;
33
38 void profile_init(const char* app_env_var_prefix);
39
44 void profile_sync(const char* app_env_var_prefix);
45
55GList* profile_add_profile(const char *name, const char *parent, bool is_global, const char* auto_switch_filter);
56
60 void profile_empty_list(void);
61
66GList* profile_get_list(void);
67
73 bool profile_name_is_valid(const char* name);
74
84 bool profile_save_settings(const char* name, const char* app_env_var_prefix, const char* app_name, char** err_info);
85
95 bool profile_delete_current(const char* app_env_var_prefix, char** err_info);
96
97#ifdef __cplusplus
98}
99#endif /* __cplusplus */
100
101#endif /* __PROFILE_H__ */
profile_get_list
GList * profile_get_list(void)
Get the edited profile list.
Definition profile.c:30
profile_sync
void profile_sync(const char *app_env_var_prefix)
Initialize the profile list. Can be called more than once.
Definition profile.c:177
profile_init
void profile_init(const char *app_env_var_prefix)
Initialize the profile list. Can be called more than once.
Definition profile.c:140
profile_empty_list
void profile_empty_list(void)
Clear out the profile list.
Definition profile.c:280
profile_save_settings
bool profile_save_settings(const char *name, const char *app_env_var_prefix, const char *app_name, char **err_info)
Save the profile settings to disk.
Definition profile.c:334
profile_add_profile
GList * profile_add_profile(const char *name, const char *parent, bool is_global, const char *auto_switch_filter)
Add a profile to the profile list.
Definition profile.c:51
profile_delete_current
bool profile_delete_current(const char *app_env_var_prefix, char **err_info)
Remove the current profile.
Definition profile.c:251
profile_name_is_valid
bool profile_name_is_valid(const char *name)
Determine if a string is a valid profile name.
Definition profile.c:80
profile_def
Describes a single Wireshark configuration profile and its associated settings.
Definition profile.h:25
profile_def::name
char * name
Definition profile.h:26
profile_def::is_global
bool is_global
Definition profile.h:28
profile_def::reference
char * reference
Definition profile.h:27
profile_def::auto_switch_filter
char * auto_switch_filter
Definition profile.h:31