diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/text_import_regex.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/text_import_regex.h')
-rw-r--r-- | ui/text_import_regex.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/ui/text_import_regex.h b/ui/text_import_regex.h new file mode 100644 index 0000000..93307c1 --- /dev/null +++ b/ui/text_import_regex.h @@ -0,0 +1,44 @@ +/** @file + * + * text_import_regex.h + * Regex based alternative to the state machine for text import + * February 2021, Paul Weiß <paulniklasweiss@gmail.com> + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * Based on text_import.h by Jaap Keuter <jaap.keuter@xs4all.nl> + * + * SPDX-License-Identifier: GPL-2.0-or-later* + *******************************************************************************/ + + +#ifndef __TEXT_IMPORT_REGEX_H__ +#define __TEXT_IMPORT_REGEX_H__ + +#include <glib.h> + +#include "text_import.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +void parse_data(guchar* start_field, guchar* end_field, enum data_encoding encoding); + +void parse_dir(const guchar* start_field, const guchar* end_field, const gchar* in_indicator, const gchar* out_indicator); + +void parse_time(const guchar* start_field, const guchar* end_field, const gchar* _format); + +void parse_seqno(const guchar* start_field, const guchar* end_field); + +void flush_packet(void); + +int text_import_regex(const text_import_info_t *info); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __TEXT_IMPORT_REGEX_H__ */ |