libghostty-vt: add semver pre info to build info

This commit is contained in:
Jeffrey C. Ollie
2026-04-06 17:17:30 -05:00
parent da835757b0
commit 06340cd3f0
4 changed files with 34 additions and 7 deletions

View File

@@ -107,13 +107,21 @@ typedef enum {
*/
GHOSTTY_BUILD_INFO_VERSION_PATCH = 8,
/**
* The pre metadata string (e.g. "alpha", "beta", "dev"). Has zero length if
* no pre metadata is present.
*
* Output type: GhosttyString *
*/
GHOSTTY_BUILD_INFO_VERSION_PRE = 9,
/**
* The build metadata string (e.g. commit hash). Has zero length if
* no build metadata is present.
*
* Output type: GhosttyString *
*/
GHOSTTY_BUILD_INFO_VERSION_BUILD = 9,
GHOSTTY_BUILD_INFO_VERSION_BUILD = 10,
} GhosttyBuildInfo;
/**