diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-06-13 08:18:50 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-06-13 08:18:50 +0000 |
commit | 2cf6f80f58daf566d4479f019530c18962b8d6e0 (patch) | |
tree | 000700108ae8f198cad0b7cbe7bb26cda8e5e1cc | |
parent | be5d4954fb6d2886a8230a33b97a0799aee37376 (diff) |
new function epan_get_version()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18450 f5534014-38df-0310-8fa8-9805f1628bb7
-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 |