| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
text_import_scanner.h
Go to the documentation of this file.
1
15
16
17#ifndef __TEXT_IMPORT_SCANNER_H__
18#define __TEXT_IMPORT_SCANNER_H__
19
20#ifdef __cplusplus
21 extern "C" {
22#endif /* __cplusplus */
23
27 typedef enum {
28 T_BYTE = 1,
29 T_BYTES,
30 T_OFFSET,
31 T_DIRECTIVE,
32 T_TEXT,
33 T_EOL,
34 T_EOF
35} token_t;
36
40 typedef enum {
41 IMPORT_SUCCESS,
42 IMPORT_FAILURE,
43 IMPORT_INIT_FAILED
44} import_status_t;
45
46 import_status_t parse_token(token_t token, char *str);
47
48 extern FILE *text_importin;
49
56 import_status_t text_import_scan(FILE *input_file);
57
58#ifdef __cplusplus
59}
60#endif /* __cplusplus */
61
62#endif /* __TEXT_IMPORT_SCANNER_H__ */
token_t
General-purpose four-field integer token produced by the BusMaster log lexer.
Definition busmaster_priv.h:102
T_DIRECTIVE
@ T_DIRECTIVE
Definition text2pcap.h:24
T_EOL
@ T_EOL
Definition text2pcap.h:26
T_BYTE
@ T_BYTE
Definition text2pcap.h:22
T_TEXT
@ T_TEXT
Definition text2pcap.h:25
text_import_scan
import_status_t text_import_scan(FILE *input_file)
Scans an input file for text import data.
T_EOF
@ T_EOF
Definition text_import_scanner.h:34
T_BYTES
@ T_BYTES
Definition text_import_scanner.h:29
parse_token
import_status_t parse_token(token_t token, char *str)
Parses a token from a string.
Definition text_import.c:1466
import_status_t
import_status_t
Return status of a text import operation.
Definition text_import_scanner.h:40
IMPORT_FAILURE
@ IMPORT_FAILURE
Definition text_import_scanner.h:42
IMPORT_INIT_FAILED
@ IMPORT_INIT_FAILED
Definition text_import_scanner.h:43
IMPORT_SUCCESS
@ IMPORT_SUCCESS
Definition text_import_scanner.h:41