Initial OBD-II PIDs dissector.
[metze/wireshark/wip.git] / sharkd.h
1 /* sharkd.h
2  *
3  * Copyright (C) 2016 Jakub Zawadzki
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef __SHARKD_H
25 #define __SHARKD_H
26
27 #include <file.h>
28 #include <globals.h>
29
30 /* sharkd.c */
31 cf_status_t sharkd_cf_open(const char *fname, unsigned int type, gboolean is_tempfile, int *err);
32 int sharkd_load_cap_file(void);
33 int sharkd_retap(void);
34 int sharkd_filter(const char *dftext, guint8 **result);
35 int sharkd_dissect_columns(int framenum, column_info *cinfo, gboolean dissect_color);
36 int sharkd_dissect_request(unsigned int framenum, void (*cb)(packet_info *, proto_tree *, struct epan_column_info *, const GSList *, void *), int dissect_bytes, int dissect_columns, int dissect_tree, void *data);
37 const char *sharkd_version(void);
38
39 /* sharkd_daemon.c */
40 int sharkd_init(int argc, char **argv);
41 int sharkd_loop(void);
42
43 /* sharkd_session.c */
44 int sharkd_session_main(void);
45
46 #endif /* __SHARKD_H */
47
48 /*
49  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
50  *
51  * Local variables:
52  * c-basic-offset: 8
53  * tab-width: 8
54  * indent-tabs-mode: t
55  * End:
56  *
57  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
58  * :indentSize=8:tabSize=8:noTabs=false:
59  */