aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2006-06-13 08:18:50 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2006-06-13 08:18:50 +0000
commita557a61ae01b399e6afebaf4c6505628d4d7750b (patch)
tree000700108ae8f198cad0b7cbe7bb26cda8e5e1cc /epan
parentf3c5f96124d4f062fef9a5ba21022b808c4def05 (diff)
new function epan_get_version()
svn path=/trunk/; revision=18450
Diffstat (limited to 'epan')
-rw-r--r--epan/epan.c5
-rw-r--r--epan/epan.h2
-rw-r--r--epan/libwireshark.def1
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