Export libwireshark symbols using WS_DLL_PUBLIC define
[metze/wireshark/wip.git] / epan / dissectors / packet-frame.h
1 /* packet-frame.h
2  *
3  * Top-most dissector. Decides dissector based on Wiretap Encapsulation Type.
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 2000 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25
26 #include "ws_symbol_export.h"
27
28 /*
29  * Routine used to register frame end routine.  The routine should only
30  * be registred when the dissector is used in the frame, not in the
31  * proto_register_XXX function.
32  */
33 void
34 register_frame_end_routine(packet_info *pinfo, void (*func)(void));
35
36 /*
37  * The frame dissector and the PPI dissector both use this
38  */
39 extern dissector_table_t wtap_encap_dissector_table;
40
41 /* following variables are exported from libwireshark.dll.
42  * Thus we need a special declaration.
43  */
44 WS_DLL_PUBLIC int proto_frame;
45 WS_DLL_PUBLIC int hf_frame_arrival_time;
46 WS_DLL_PUBLIC int hf_frame_number;
47 WS_DLL_PUBLIC int hf_frame_len;
48 WS_DLL_PUBLIC int hf_frame_capture_len;