diff options
author | Luca <deri@ntop.org> | 2018-03-21 18:33:08 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2018-03-21 18:33:08 +0100 |
commit | a2acd092634d1cfc04e89c874d584a16ae54f3ea (patch) | |
tree | 88bff31f9dcfacd0a4278aaba1cae6ed82d40bdb /src/lib | |
parent | 957b01aa716d3477d2a4530ca12ff209cd225321 (diff) |
Added ndpi_get_api_version() API call to be used in applications that
are dynamically linking with nDPI, to make sure the APIs are in sync
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index ee698a75f..afb0f39e7 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5234,3 +5234,7 @@ void NDPI_DUMP_BITMASK(NDPI_PROTOCOL_BITMASK a) { printf("\n"); } + +u_int8_t ndpi_get_api_version() { + return(NDPI_API_VERSION); +} |