4 * Regex based alternative to the state machine for text import
5 * February 2021, Paul Weiß <paulniklasweiss@gmail.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * Based on text_import.h by Jaap Keuter <jaap.keuter@xs4all.nl>
13 * SPDX-License-Identifier: GPL-2.0-or-later*
14 *******************************************************************************/
17 #ifndef __TEXT_IMPORT_REGEX_H__
18 #define __TEXT_IMPORT_REGEX_H__
22 #include "text_import.h"
26 #endif /* __cplusplus */
28 void parse_data(unsigned char* start_field
, unsigned char* end_field
, enum data_encoding encoding
);
30 void parse_dir(const unsigned char* start_field
, const unsigned char* end_field
, const char* in_indicator
, const char* out_indicator
);
32 void parse_time(const unsigned char* start_field
, const unsigned char* end_field
, const char* _format
);
34 void parse_seqno(const unsigned char* start_field
, const unsigned char* end_field
);
36 void flush_packet(void);
38 int text_import_regex(const text_import_info_t
*info
);
42 #endif /* __cplusplus */
44 #endif /* __TEXT_IMPORT_REGEX_H__ */