kerberos: make use of &NT_errors_ext
[wireshark-sm.git] / ui / text_import_scanner.h
blob5903948eac6db9f062376d51874d9d76c4d6f864
1 /** @file
3 * text_import_scanner.h
4 * Scanner for text import
5 * November 2010, Jaap Keuter <jaap.keuter@xs4all.nl>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * Based on text2pcap.h by Ashok Narayanan <ashokn@cisco.com>
13 * SPDX-License-Identifier: GPL-2.0-or-later*
14 *******************************************************************************/
17 #ifndef __TEXT_IMPORT_SCANNER_H__
18 #define __TEXT_IMPORT_SCANNER_H__
20 #ifdef __cplusplus
21 extern "C" {
22 #endif /* __cplusplus */
24 typedef enum {
25 T_BYTE = 1,
26 T_OFFSET,
27 T_DIRECTIVE,
28 T_TEXT,
29 T_EOL,
30 T_EOF
31 } token_t;
33 typedef enum {
34 IMPORT_SUCCESS,
35 IMPORT_FAILURE,
36 IMPORT_INIT_FAILED
37 } import_status_t;
39 import_status_t parse_token(token_t token, char *str);
41 extern FILE *text_importin;
43 import_status_t text_import_scan(FILE *input_file);
45 #ifdef __cplusplus
47 #endif /* __cplusplus */
49 #endif /* __TEXT_IMPORT_SCANNER_H__ */