sq krb_pa_supported_enctypes
[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  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11
12 #ifndef __SHARKD_H
13 #define __SHARKD_H
14
15 #include <file.h>
16
17 #define SHARKD_DISSECT_FLAG_NULL       0x00u
18 #define SHARKD_DISSECT_FLAG_BYTES      0x01u
19 #define SHARKD_DISSECT_FLAG_COLUMNS    0x02u
20 #define SHARKD_DISSECT_FLAG_PROTO_TREE 0x04u
21 #define SHARKD_DISSECT_FLAG_COLOR      0x08u
22
23 typedef void (*sharkd_dissect_func_t)(epan_dissect_t *edt, proto_tree *tree, struct epan_column_info *cinfo, const GSList *data_src, void *data);
24
25 /* sharkd.c */
26 cf_status_t sharkd_cf_open(const char *fname, unsigned int type, gboolean is_tempfile, int *err);
27 int sharkd_load_cap_file(void);
28 int sharkd_retap(void);
29 int sharkd_filter(const char *dftext, guint8 **result);
30 frame_data *sharkd_get_frame(guint32 framenum);
31 int sharkd_dissect_columns(frame_data *fdata, guint32 frame_ref_num, guint32 prev_dis_num, column_info *cinfo, gboolean dissect_color);
32 int sharkd_dissect_request(guint32 framenum, guint32 frame_ref_num, guint32 prev_dis_num, sharkd_dissect_func_t cb, guint32 dissect_flags, void *data);
33 const char *sharkd_get_user_comment(const frame_data *fd);
34 int sharkd_set_user_comment(frame_data *fd, const gchar *new_comment);
35 const char *sharkd_version(void);
36
37 /* sharkd_daemon.c */
38 int sharkd_init(int argc, char **argv);
39 int sharkd_loop(void);
40
41 /* sharkd_session.c */
42 int sharkd_session_main(void);
43
44 #endif /* __SHARKD_H */
45
46 /*
47  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
48  *
49  * Local variables:
50  * c-basic-offset: 8
51  * tab-width: 8
52  * indent-tabs-mode: t
53  * End:
54  *
55  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
56  * :indentSize=8:tabSize=8:noTabs=false:
57  */