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 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */
19 
25 #define PROF_STAT_DEFAULT 1
26 #define PROF_STAT_EXISTS 2
27 #define PROF_STAT_NEW 3
28 #define PROF_STAT_CHANGED 4
29 #define PROF_STAT_COPY 5
30 #define PROF_STAT_IMPORT 6
31 
32 typedef struct {
33  char *name; /* profile name */
34  char *reference; /* profile reference */
35  int status;
36  gboolean is_global;
37  gboolean from_global;
38  gboolean is_import;
39 } profile_def;
40 
48 void init_profile_list(void);
49 
61 GList *add_to_profile_list(const char *name, const char *parent, int status,
62  gboolean is_global, gboolean from_global, gboolean is_import);
63 
66 void copy_profile_list(void);
67 
72 void empty_profile_list(gboolean edit_list);
73 
78 void remove_from_profile_list(GList *fl_entry);
79 
84 GList *current_profile_list(void);
85 
90 GList * edited_profile_list(void);
91 
96 gchar *apply_profile_changes(void);
97 
104 const gchar *get_profile_parent (const gchar *profilename);
105 
111 gchar *profile_name_is_valid(const gchar *name);
112 
118 gboolean delete_current_profile(void);
119 
120 #ifdef __cplusplus
121 }
122 #endif /* __cplusplus */
123 
124 #endif /* __PROFILE_H__ */
gboolean delete_current_profile(void)
Definition: profile.c:420
void empty_profile_list(gboolean edit_list)
Definition: profile.c:264
void init_profile_list(void)
Definition: profile.c:314
gchar * apply_profile_changes(void)
Definition: profile.c:106
void remove_from_profile_list(GList *fl_entry)
Definition: profile.c:258
const gchar * get_profile_parent(const gchar *profilename)
Definition: profile.c:75
GList * add_to_profile_list(const char *name, const char *parent, int status, gboolean is_global, gboolean from_global, gboolean is_import)
Definition: profile.c:248
gchar * profile_name_is_valid(const gchar *name)
Definition: profile.c:380
GList * edited_profile_list(void)
Definition: profile.c:39
void copy_profile_list(void)
Definition: profile.c:292
GList * current_profile_list(void)
Definition: profile.c:35
Definition: profile.h:32