[mpp_info]: Add funciton to read version string

Change-Id: I66f8c4a3669e3eb6d67289f12db300da149bdcb7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen 2020-04-28 15:53:53 +08:00
parent 641ff2dbf3
commit 8c9f6f75fe
2 changed files with 6 additions and 0 deletions

View file

@ -22,6 +22,7 @@ extern "C" {
#endif /* __cplusplus */
void show_mpp_version(void);
const char *get_mpp_version(void);
#ifdef __cplusplus
}

View file

@ -59,3 +59,8 @@ void show_mpp_version(void)
} else
mpp_log("mpp version: %s\n", mpp_version);
}
const char *get_mpp_version(void)
{
return mpp_version;
}