diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 18:38:03 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 18:38:03 +0000 |
commit | 28e9dcc4a9261a61b16dfd9a2051205289beb926 (patch) | |
tree | 69465d340a5472a87467c43de32fd9f6a3035b1a /epan/epan.h | |
parent | 9e7b6f1a69c516579ffd4618f89e20559d738666 (diff) |
Some work on multi file dissection
- make init_dissection/cleanup_dissection private for libwireshark
- implement epan_new(), epan_free()
- pass epan_t to epan_dissect*
svn path=/trunk/; revision=50761
Diffstat (limited to 'epan/epan.h')
-rw-r--r-- | epan/epan.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/epan/epan.h b/epan/epan.h index 6882947c17..263a80f353 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -125,14 +125,11 @@ void epan_circuit_cleanup(void); * some protocols cannot be decoded without knowledge of previous packets. * This inter-packet "state" is stored in the epan_t. */ -/* XXX - NOTE: epan_t, epan_new and epan_free are currently unused! */ typedef struct epan_session epan_t; -epan_t* -epan_new(void); +WS_DLL_PUBLIC epan_t *epan_new(void); -void -epan_free(epan_t*); +WS_DLL_PUBLIC void epan_free(epan_t *session); WS_DLL_PUBLIC const gchar* epan_get_version(void); @@ -140,14 +137,14 @@ epan_get_version(void); /** initialize an existing single packet dissection */ WS_DLL_PUBLIC epan_dissect_t* -epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const gboolean proto_tree_visible); +epan_dissect_init(epan_dissect_t *edt, epan_t *session, const gboolean create_proto_tree, const gboolean proto_tree_visible); /** get a new single packet dissection * should be freed using epan_dissect_free() after packet dissection completed */ WS_DLL_PUBLIC epan_dissect_t* -epan_dissect_new(const gboolean create_proto_tree, const gboolean proto_tree_visible); +epan_dissect_new(epan_t *session, const gboolean create_proto_tree, const gboolean proto_tree_visible); /** Indicate whether we should fake protocols or not */ WS_DLL_PUBLIC |