| 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
21 extern "C" {
22#endif /* __cplusplus */
23
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;
33
34 typedef 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
42 extern FILE *text_importin;
43
44import_status_t text_import_scan(FILE *input_file);
45
46#ifdef __cplusplus
47}
48#endif /* __cplusplus */
49
50#endif /* __TEXT_IMPORT_SCANNER_H__ */
token_t
Definition busmaster_priv.h:75
parse_token
import_status_t parse_token(token_t token, char *str)
Parses a token from a string.
Definition text_import.c:1426