diff options
-rw-r--r-- | epan/epan.c | 5 | ||||
-rw-r--r-- | epan/epan.h | 2 | ||||
-rw-r--r-- | epan/libwireshark.def | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c index 68fd7477e4..5fe361a40a 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -29,6 +29,11 @@ static void (*report_failure_func)(const char *, va_list); static void (*report_open_failure_func)(const char *, int, gboolean); static void (*report_read_failure_func)(const char *, int); +gchar* +epan_get_version(void) { + return VERSION; +} + /* * XXX - this takes the plugin directory as an argument, because * libwireshark now has its own configure script and "config.h" file, diff --git a/epan/epan.h b/epan/epan.h index e43957ccd7..2a7bf6fcb2 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -62,6 +62,8 @@ epan_new(void); void epan_free(epan_t*); +extern gchar* +epan_get_version(void); /* get a new single packet dissection */ /* should be freed using epan_dissect_free() after packet dissection completed */ diff --git a/epan/libwireshark.def b/epan/libwireshark.def index fb8be9d7d4..f7252f6485 100644 --- a/epan/libwireshark.def +++ b/epan/libwireshark.def @@ -229,6 +229,7 @@ epan_dissect_free epan_dissect_new epan_dissect_prime_dfilter epan_dissect_run +epan_get_version epan_init ether_to_str ex_opt_add |