Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
text_import_scanner.h
Go to the documentation of this file.
1
17#ifndef __TEXT_IMPORT_SCANNER_H__
18#define __TEXT_IMPORT_SCANNER_H__
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24typedef 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;
33
34typedef enum {
35 IMPORT_SUCCESS,
36 IMPORT_FAILURE,
37 IMPORT_INIT_FAILED
38} import_status_t;
39
40import_status_t parse_token(token_t token, char *str);
41
42extern FILE *text_importin;
43
50import_status_t text_import_scan(FILE *input_file);
51
52#ifdef __cplusplus
53}
54#endif /* __cplusplus */
55
56#endif /* __TEXT_IMPORT_SCANNER_H__ */
Definition busmaster_priv.h:75
import_status_t text_import_scan(FILE *input_file)
Scans an input file for text import data.
import_status_t parse_token(token_t token, char *str)
Parses a token from a string.
Definition text_import.c:1426