Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / text_import_scanner.h
blobf6dc4afcf435bc06230d386a89b38b5ee5222aad
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_BYTES,
27 T_OFFSET,
28 T_DIRECTIVE,
29 T_TEXT,
30 T_EOL,
31 T_EOF
32 } token_t;
34 typedef enum {
35 IMPORT_SUCCESS,
36 IMPORT_FAILURE,
37 IMPORT_INIT_FAILED
38 } import_status_t;
40 import_status_t parse_token(token_t token, char *str);
42 extern FILE *text_importin;
44 import_status_t text_import_scan(FILE *input_file);
46 #ifdef __cplusplus
48 #endif /* __cplusplus */
50 #endif /* __TEXT_IMPORT_SCANNER_H__ */