nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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, /* Built-in register */ |
||
39 | RA_PLUGIN_REGISTER, /* Plugin register */ |
||
40 | RA_HANDOFF, /* Built-in 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_INTERFACES, /* Local interfaces */ |
||
46 | RA_CONFIGURATION /* Configuration files */ |
||
47 | } register_action_e; |
||
48 | |||
49 | typedef void (*register_cb)(register_action_e action, const char *message, gpointer client_data); |
||
50 | |||
51 | WS_DLL_PUBLIC void register_all_protocols(register_cb cb, gpointer client_data); |
||
52 | WS_DLL_PUBLIC void register_all_protocol_handoffs(register_cb cb, gpointer client_data); |
||
53 | extern void register_all_tap_listeners(void); |
||
54 | WS_DLL_PUBLIC gulong register_count(void); |
||
55 | |||
56 | #ifdef __cplusplus |
||
57 | } |
||
58 | #endif /* __cplusplus */ |
||
59 | |||
60 | #endif /* __REGISTER_H__ */ |
||
61 | |||
62 | /* |
||
63 | * Editor modelines - http://www.wireshark.org/tools/modelines.html |
||
64 | * |
||
65 | * Local Variables: |
||
66 | * c-basic-offset: 2 |
||
67 | * tab-width: 8 |
||
68 | * indent-tabs-mode: nil |
||
69 | * End: |
||
70 | * |
||
71 | * vi: set shiftwidth=2 tabstop=8 expandtab: |
||
72 | * :indentSize=2:tabSize=8:noTabs=true: |
||
73 | */ |