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
19extern "C" {
20#endif /* __cplusplus */
21
25typedef struct {
26 char *name;
27 char *reference;
28 bool is_global;
29
30 /* Settings */
33
38void profile_init(const char* app_env_var_prefix);
39
44void 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
60void profile_empty_list(void);
61
66GList* profile_get_list(void);
67
73bool profile_name_is_valid(const char* name);
74
84bool profile_save_settings(const char* name, const char* app_env_var_prefix, const char* app_name, char** err_info);
85
95bool 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__ */
GList * profile_get_list(void)
Get the edited profile list.
Definition profile.c:30
void profile_sync(const char *app_env_var_prefix)
Initialize the profile list. Can be called more than once.
Definition profile.c:177
void profile_init(const char *app_env_var_prefix)
Initialize the profile list. Can be called more than once.
Definition profile.c:140
void profile_empty_list(void)
Clear out the profile list.
Definition profile.c:280
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
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
bool profile_delete_current(const char *app_env_var_prefix, char **err_info)
Remove the current profile.
Definition profile.c:251
bool profile_name_is_valid(const char *name)
Determine if a string is a valid profile name.
Definition profile.c:80
Describes a single Wireshark configuration profile and its associated settings.
Definition profile.h:25
char * name
Definition profile.h:26
bool is_global
Definition profile.h:28
char * reference
Definition profile.h:27
char * auto_switch_filter
Definition profile.h:31