Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

profile.h
Go to the documentation of this file.
1 /* profile.h
2 * Definitions for dialog box for profiles editing.
3 * Stig Bjorlykke <stig@bjorlykke.org>, 2008
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __PROFILE_H__
13 #define __PROFILE_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18
24 #define PROF_STAT_DEFAULT 1
25 #define PROF_STAT_EXISTS 2
26 #define PROF_STAT_NEW 3
27 #define PROF_STAT_CHANGED 4
28 #define PROF_STAT_COPY 5
29
30 typedef struct {
31 char *name; /* profile name */
32 char *reference; /* profile reference */
33 int status;
34 gboolean is_global;
35 gboolean from_global;
36 } profile_def;
37
45 void init_profile_list(void);
46
57 GList *add_to_profile_list(const char *name, const char *parent, int status,
58 gboolean is_global, gboolean from_global);
59
62 void copy_profile_list(void);
63
68 void empty_profile_list(gboolean edit_list);
69
74 void remove_from_profile_list(GList *fl_entry);
75
80 GList *current_profile_list(void);
81
86 GList * edited_profile_list(void);
87
92 gchar *apply_profile_changes(void);
93
100 const gchar *get_profile_parent (const gchar *profilename);
101
107 gchar *profile_name_is_valid(const gchar *name);
108
114 gboolean delete_current_profile(void);
115
116 #ifdef __cplusplus
117 }
118 #endif /* __cplusplus */
119
120 #endif /* __PROFILE_H__ */
121
122 /*
123 * Editor modelines - http://www.wireshark.org/tools/modelines.html
124 *
125 * Local variables:
126 * c-basic-offset: 4
127 * tab-width: 8
128 * indent-tabs-mode: nil
129 * End:
130 *
131 * vi: set shiftwidth=4 tabstop=8 expandtab:
132 * :indentSize=4:tabSize=8:noTabs=true:
133 */
edited_profile_list
GList * edited_profile_list(void)
Definition: profile.c:38
copy_profile_list
void copy_profile_list(void)
Definition: profile.c:277
profile_name_is_valid
gchar * profile_name_is_valid(const gchar *name)
Definition: profile.c:365
empty_profile_list
void empty_profile_list(gboolean edit_list)
Definition: profile.c:253
add_to_profile_list
GList * add_to_profile_list(const char *name, const char *parent, int status, gboolean is_global, gboolean from_global)
Definition: profile.c:237
current_profile_list
GList * current_profile_list(void)
Definition: profile.c:34
get_profile_parent
const gchar * get_profile_parent(const gchar *profilename)
Definition: profile.c:70
remove_from_profile_list
void remove_from_profile_list(GList *fl_entry)
Definition: profile.c:247
apply_profile_changes
gchar * apply_profile_changes(void)
Definition: profile.c:101
init_profile_list
void init_profile_list(void)
Definition: profile.c:299
profile_def
Definition: profile.h:30
delete_current_profile
gboolean delete_current_profile(void)
Definition: profile.c:405