<cahute/info.h> – Cahute library information

Type definitions

struct cahute_info

Information regarding the dynamic library.

unsigned long cahute_info_flags

Flags, among the following:

CAHUTE_INFO_FLAG_GIT

Whether the source directory used for building the library was a Git repository.

CAHUTE_INFO_FLAG_GIT_TAGGED

If the source directory used for building the library was a Git repository, whether a tag was positioned on the current git commit with the current version.

For example, if the version is set to 0.5, and the 0.5 tag is currently present and positioned on the current git commit, this is set.

CAHUTE_INFO_FLAG_GIT_DIRTY

If the source directory used for building the library was a Git repository, whether uncommitted changes were present on top of the current git commit.

char const *cahute_info_version_name

Name of the current version.

char const *cahute_info_homepage_url

Homepage URL for the Cahute project.

char const *cahute_info_issues_url

Bug report URL for the Cahute project.

char const *cahute_info_git_commit

Current git commit for the repository, as a string, e.g. f1e3623ee60687c59400e2fa876dfc667d69b592.

If CAHUTE_INFO_FLAG_GIT is unset on cahute_info.cahute_info_flags, this member is set to NULL.

char const *cahute_info_git_branch

Current git branch for the repository, as a string, e.g. develop or feat/hello-world.

If CAHUTE_INFO_FLAG_GIT is unset on cahute_info.cahute_info_flags, this member is set to NULL.

Function declarations

cahute_info const *cahute_get_info(void)

Get a pointer to the current library information.

Returns:

Pointer to the current library information.