mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-10-02 18:23:21 +08:00
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>
26 lines
361 B
C
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;
|
|
}
|