Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
profile.h
Go to the documentation of this file.
1
13#ifndef __PROFILE_H__
14#define __PROFILE_H__
15
16#include <glib.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22typedef struct {
23 char *name; /* profile name */
24 char *reference; /* profile reference */
25 bool is_global;
26
27 // Settings
28 char *auto_switch_filter;
30
35void profile_init(const char* app_env_var_prefix);
36
41void profile_sync(const char* app_env_var_prefix);
42
52GList* profile_add_profile(const char *name, const char *parent, bool is_global, const char* auto_switch_filter);
53
57void profile_empty_list(void);
58
63GList* profile_get_list(void);
64
70bool profile_name_is_valid(const char* name);
71
81bool profile_save_settings(const char* name, const char* app_env_var_prefix, const char* app_name, char** err_info);
82
92bool profile_delete_current(const char* app_env_var_prefix, char** err_info);
93
94#ifdef __cplusplus
95}
96#endif /* __cplusplus */
97
98#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
Definition profile.h:22