Files
open-amp/lib/version.c
T
Arnaud Pouliquen 2833ca2aaa lib: add new API to get the library version
Add similar API that the libmetal to allow application to get information
about the version of the openamp library.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-04-26 16:06:20 +02:00

26 lines
361 B
C

/*
* Copyright (c) 2021, STMicroelectronics
*
* SPDX-License-Identifier: BSD-3-Clause
*/
int openamp_version_major(void)
{
return OPENAMP_VERSION_MAJOR;
}
int openamp_version_minor(void)
{
return OPENAMP_VERSION_MINOR;
}
int openamp_version_patch(void)
{
return OPENAMP_VERSION_PATCH;
}
const char *openamp_version(void)
{
return OPENAMP_VERSION;
}