| 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
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
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__ */
current_profile_list
GList * current_profile_list(void)
Definition profile.c:39
edited_profile_list
GList * edited_profile_list(void)
Definition profile.c:43
get_profile_parent
const char * get_profile_parent(const char *profilename)
Definition profile.c:83
delete_current_profile
bool delete_current_profile(void)
Definition profile.c:447
init_profile_list
void init_profile_list(void)
Definition profile.c:338
remove_from_profile_list
void remove_from_profile_list(GList *fl_entry)
Definition profile.c:277
profile_name_is_valid
char * profile_name_is_valid(const char *name)
Definition profile.c:407
apply_profile_changes
char * apply_profile_changes(void)
Definition profile.c:114
copy_profile_list
void copy_profile_list(void)
Definition profile.c:311
empty_profile_list
void empty_profile_list(bool edit_list)
Definition profile.c:283
add_to_profile_list
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:267
profile_def
Definition profile.h:34