MSWSP: fix scope of VT_TYPE
[wireshark-wip.git] / text2pcap.h
blob8f6ca6ece8a5210a8b16c6e20c33719c5fde10ec
1 /**-*-C-*-**********************************************************************
3 * text2pcap.h
5 * Utility to convert an ASCII hexdump into a libpcap-format capture file
7 * (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
9 * $Id$
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License
19 * as published by the Free Software Foundation; either version 2
20 * of the License, or (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
31 *******************************************************************************/
34 #ifndef TEXT2PCAP_H
35 #define TEXT2PCAP_H
37 typedef enum {
38 T_BYTE = 1,
39 T_OFFSET,
40 T_DIRECTIVE,
41 T_TEXT,
42 T_EOL
43 } token_t;
45 void parse_token(token_t token, char *str);
47 int yylex(void);
49 #endif