Delete extra_split if we're not using it. This keeps its handle from
[metze/wireshark/wip.git] / ui / text_import_scanner.h
1 /**-*-C-*-**********************************************************************
2  * text_import_scanner.h
3  * Scanner for text import
4  * November 2010, Jaap Keuter <jaap.keuter@xs4all.nl>
5  *
6  * $Id$
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
10  * Copyright 1998 Gerald Combs
11  *
12  * Based on text2pcap.h by Ashok Narayanan <ashokn@cisco.com>
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27  *
28  *******************************************************************************/
29
30
31 #ifndef __TEXT_IMPORT_SCANNER_H__
32 #define __TEXT_IMPORT_SCANNER_H__
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif /* __cplusplus */
37
38 typedef enum {
39     T_BYTE = 1,
40     T_OFFSET,
41     T_DIRECTIVE,
42     T_TEXT,
43     T_EOL
44 } token_t;
45
46
47 void parse_token(token_t token, char *str);
48 void write_current_packet(void);
49
50 extern FILE *text_importin;
51
52 int text_importlex(void);
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58 #endif /* __TEXT_IMPORT_SCANNER_H__ */
59
60 /*
61  * Editor modelines
62  *
63  * Local Variables:
64  * c-basic-offset: 4
65  * tab-width: 8
66  * indent-tabs-mode: nil
67  * End:
68  *
69  * ex: set shiftwidth=4 tabstop=8 expandtab:
70  * :indentSize=4:tabSize=8:noTabs=true:
71  */