Qt: Fix leak on CaptureFileDialog preview of file with errors
[wireshark.git] / text2pcap.h
blob955100a3c35e0ad7ec05a25f708043a5861ceea3
1 /** @file
3 * Utility to convert an ASCII hexdump into a libpcap-format capture file
5 * (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * SPDX-License-Identifier: GPL-2.0-or-later
15 #ifndef TEXT2PCAP_H
16 #define TEXT2PCAP_H
18 typedef enum {
19 T_BYTE = 1,
20 T_OFFSET,
21 T_DIRECTIVE,
22 T_TEXT,
23 T_EOL
24 } token_t;
26 int parse_token(token_t token, char *str);
28 int text2pcap_scan(void);
30 #endif
33 * Editor modelines - https://www.wireshark.org/tools/modelines.html
35 * Local variables:
36 * c-basic-offset: 4
37 * tab-width: 8
38 * indent-tabs-mode: nil
39 * End:
41 * vi: set shiftwidth=4 tabstop=8 expandtab:
42 * :indentSize=4:tabSize=8:noTabs=true: