Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
feat: add LCDesign_GetVersion()
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Feb 29, 2020
1 parent e7e0ace commit 8dbd846
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/LCDesign.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@

LCDESIGN_API void LCDesign_Init(void);

LCDESIGN_API const char *LCDesign_GetVersion(void);

#endif
3 changes: 3 additions & 0 deletions include/LCDesign/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@
#define LCDESIGN_API
#endif
#endif

#define LCDESIGN_VERSION_STRING "1.1.0"

#endif
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
#include <LCUI.h>
#include <LCDesign.h>

const char *LCDesign_GetVersion(void)
{
return LCDESIGN_VERSION_STRING;
}

void LCDesign_Init(void)
{
LCDesign_InitAlert();
Expand Down

0 comments on commit 8dbd846

Please sign in to comment.