Wireshark  4.3.0
The Wireshark network protocol analyzer
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
19 extern "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 
34 typedef 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;
44 } profile_def;
45 
53 void init_profile_list(void);
54 
66 GList *add_to_profile_list(const char *name, const char *parent, int status,
67  bool is_global, bool from_global, bool is_import);
68 
71 void copy_profile_list(void);
72 
77 void empty_profile_list(bool edit_list);
78 
83 void remove_from_profile_list(GList *fl_entry);
84 
89 GList *current_profile_list(void);
90 
95 GList * edited_profile_list(void);
96 
101 char *apply_profile_changes(void);
102 
109 const char *get_profile_parent(const char *profilename);
110 
116 char *profile_name_is_valid(const char *name);
117 
123 bool delete_current_profile(void);
124 
125 #ifdef __cplusplus
126 }
127 #endif /* __cplusplus */
128 
129 #endif /* __PROFILE_H__ */
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
GList * edited_profile_list(void)
Definition: profile.c:42
char * profile_name_is_valid(const char *name)
Definition: profile.c:405
char * apply_profile_changes(void)
Definition: profile.c:113
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
void copy_profile_list(void)
Definition: profile.c:310
void empty_profile_list(bool edit_list)
Definition: profile.c:282
GList * current_profile_list(void)
Definition: profile.c:38
Definition: profile.h:34