Move the parts of a capture_file used by libwireshark to a new structure.
[metze/wireshark/wip.git] / cfile.c
1 /* cfile.c
2  * capture_file GUI-independent manipulation
3  * Vassilii Khachaturov <vassilii@tarunz.org>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0+
10  */
11
12 #include <config.h>
13
14 #include <glib.h>
15
16 #include <epan/packet.h>
17 #include <wiretap/pcapng.h>
18
19 #include "cfile.h"
20 #include "cfile-int.h"
21
22 void
23 cap_file_init(capture_file *cf)
24 {
25   /* Initialize the capture file struct */
26   memset(cf, 0, sizeof(capture_file));
27 }
28
29 /*
30  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
31  *
32  * Local Variables:
33  * c-basic-offset: 2
34  * tab-width: 8
35  * indent-tabs-mode: nil
36  * End:
37  *
38  * ex: set shiftwidth=2 tabstop=8 expandtab:
39  * :indentSize=2:tabSize=8:noTabs=true:
40  */