From 089522277b80ec759dc2d5fe5f45a3f4d5e6f378 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 13 Dec 2014 15:54:15 +0800 Subject: [PATCH] add version.h --- libsodium/.gitignore | 1 - .../src/libsodium/include/sodium/version.h | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 libsodium/src/libsodium/include/sodium/version.h diff --git a/libsodium/.gitignore b/libsodium/.gitignore index c9fbdfe4..6241bde2 100644 --- a/libsodium/.gitignore +++ b/libsodium/.gitignore @@ -48,7 +48,6 @@ src/curvecp/curvecpmessage src/curvecp/curvecpprintkey src/curvecp/curvecpserver src/libsodium/*.def -src/libsodium/include/sodium/version.h stamp-* test/default/*.res test/default/*.trs diff --git a/libsodium/src/libsodium/include/sodium/version.h b/libsodium/src/libsodium/include/sodium/version.h new file mode 100644 index 00000000..3bd0cba6 --- /dev/null +++ b/libsodium/src/libsodium/include/sodium/version.h @@ -0,0 +1,29 @@ + +#ifndef sodium_version_H +#define sodium_version_H + +#include "export.h" + +#define SODIUM_VERSION_STRING "1.0.1" + +#define SODIUM_LIBRARY_VERSION_MAJOR 7 +#define SODIUM_LIBRARY_VERSION_MINOR 3 + +#ifdef __cplusplus +extern "C" { +#endif + +SODIUM_EXPORT +const char *sodium_version_string(void); + +SODIUM_EXPORT +int sodium_library_version_major(void); + +SODIUM_EXPORT +int sodium_library_version_minor(void); + +#ifdef __cplusplus +} +#endif + +#endif