Wireshark 4.5.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
27#define PROF_STAT_DEFAULT 1
28#define PROF_STAT_EXISTS 2
29#define PROF_STAT_NEW 3
30#define PROF_STAT_CHANGED 4
31#define PROF_STAT_COPY 5
32#define PROF_STAT_IMPORT 6
33
34typedef struct {
35 char *name; /* profile name */
36 char *reference; /* profile reference */
37 int status;
38 bool is_global;
39 bool from_global;
40 bool is_import;
41 // Settings
42 bool prefs_changed;
43 char *auto_switch_filter;
45
53void init_profile_list(void);
54
66GList *add_to_profile_list(const char *name, const char *parent, int status,
67 bool is_global, bool from_global, bool is_import);
68
71void copy_profile_list(void);
72
77void empty_profile_list(bool edit_list);
78
83void remove_from_profile_list(GList *fl_entry);
84
89GList *current_profile_list(void);
90
95GList * edited_profile_list(void);
96
101char *apply_profile_changes(void);
102
109const char *get_profile_parent(const char *profilename);
110
116char *profile_name_is_valid(const char *name);
117
123bool delete_current_profile(void);
124
125#ifdef __cplusplus
126}
127#endif /* __cplusplus */
128
129#endif /* __PROFILE_H__ */
GList * current_profile_list(void)
Definition profile.c:38
GList * edited_profile_list(void)
Definition profile.c:42
const char * get_profile_parent(const char *profilename)
Definition profile.c:82
bool delete_current_profile(void)
Definition profile.c:445
void init_profile_list(void)
Definition profile.c:337
void remove_from_profile_list(GList *fl_entry)
Definition profile.c:276
char * profile_name_is_valid(const char *name)
Definition profile.c:405
char * apply_profile_changes(void)
Definition profile.c:113
void copy_profile_list(void)
Definition profile.c:310
void empty_profile_list(bool edit_list)
Definition profile.c:282
GList * add_to_profile_list(const char *name, const char *parent, int status, bool is_global, bool from_global, bool is_import)
Definition profile.c:266
Definition profile.h:34