Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ODLA] Add version API #705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ODLA/include/ODLA/odla_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* \details This file defines the ODLA version number.
*/

#include <ODLA/odla_common.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -33,6 +35,15 @@ extern "C" {
//! \brief ODLA version number.
#define ODLA_VERSION_NUMBER ((ODLA_MAJOR)*100 + (ODLA_MINOR)*10 + (OLDA_PATCH))

const char* ODLAAPIVersion __attribute__((weak)) =
ODLA_VERSION_STR(ODLA_MAJOR, ODLA_MINOR, ODLA_PATCH);

//! \brief Get version string of the library.
/*!
\return NULL-terminated string of version info.
*/
const odla_char* odla_GetVersionString();

#ifdef __cplusplus
} // C extern
#endif
Expand Down