3 * Copyright (C) 2016 Jakub Zawadzki
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
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
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);
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);
38 int sharkd_init(int argc, char **argv);
39 int sharkd_loop(void);
41 /* sharkd_session.c */
42 int sharkd_session_main(void);
44 #endif /* __SHARKD_H */
47 * Editor modelines - http://www.wireshark.org/tools/modelines.html
55 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
56 * :indentSize=8:tabSize=8:noTabs=false: