nexmon – Blame information for rev 1

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