Skip to content

Commit

Permalink
Added version string getter
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Zoppi <[email protected]>
  • Loading branch information
TexZK committed Mar 30, 2024
1 parent 6f48a27 commit b297303
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/aymo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ AYMO_CXX_EXTERN_C_BEGIN

AYMO_PUBLIC void aymo_boot(void);

AYMO_PUBLIC const char* aymo_get_version(void);


AYMO_CXX_EXTERN_C_END

Expand Down
6 changes: 6 additions & 0 deletions src/aymo.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ void aymo_boot(void)
}


const char* aymo_get_version(void)
{
return PACKAGE_VERSION;
}


AYMO_CXX_EXTERN_C_END

0 comments on commit b297303

Please sign in to comment.