Skip to content

Commit de40c7c

Browse files
committed
feat: add LCUI_GetVersion()
1 parent a425987 commit de40c7c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

include/LCUI/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ LCUI_API void LCUI_Init(void);
235235
LCUI_API int LCUI_Main(void);
236236

237237
/** 获取LCUI的版本 */
238-
LCUI_API int LCUI_GetSelfVersion(char *out);
238+
LCUI_API const char *LCUI_GetVersion(void);
239239

240240
/** 释放LCUI占用的资源 */
241241
LCUI_API int LCUI_Destroy(void);

src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,11 @@ void LCUI_Init(void)
646646
}
647647
}
648648

649+
const char *LCUI_GetVersion(void)
650+
{
651+
return PACKAGE_VERSION;
652+
}
653+
649654
int LCUI_Destroy(void)
650655
{
651656
LCUI_SysEventRec e;

0 commit comments

Comments
 (0)