Use MAC address documentation range in filter examples
[metze/wireshark/wip.git] / register.h
1 /* register.h
2  * Definitions for protocol registration
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22
23 #ifndef __REGISTER_H__
24 #define __REGISTER_H__
25
26 #include "ws_symbol_export.h"
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31
32 #include <glib.h>
33
34 typedef enum {
35   RA_NONE,              /* for initialization */
36   RA_DISSECTORS,        /* Initializing dissectors */
37   RA_LISTENERS,         /* Tap listeners */
38   RA_REGISTER,          /* register */
39   RA_PLUGIN_REGISTER,   /* plugin register */
40   RA_HANDOFF,           /* handoff */
41   RA_PLUGIN_HANDOFF,    /* plugin handoff */
42   RA_LUA_PLUGINS,       /* lua plugin register */
43   RA_LUA_DEREGISTER,    /* lua plugin deregister */
44   RA_PREFERENCES,       /* module preferences */
45   RA_CONFIGURATION      /* configuration files */
46 } register_action_e;
47
48 typedef void (*register_cb)(register_action_e action, const char *message, gpointer client_data);
49
50 WS_DLL_PUBLIC void register_all_protocols(register_cb cb, gpointer client_data);
51 WS_DLL_PUBLIC void register_all_protocol_handoffs(register_cb cb, gpointer client_data);
52 extern void register_all_tap_listeners(void);
53 WS_DLL_PUBLIC gulong register_count(void);
54
55 #ifdef __cplusplus
56 }
57 #endif /* __cplusplus */
58
59 #endif /* __REGISTER_H__ */
60
61 /*
62  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
63  *
64  * Local Variables:
65  * c-basic-offset: 2
66  * tab-width: 8
67  * indent-tabs-mode: nil
68  * End:
69  *
70  * vi: set shiftwidth=2 tabstop=8 expandtab:
71  * :indentSize=2:tabSize=8:noTabs=true:
72  */