diff options
Diffstat (limited to 'src/semver/semver.h')
-rw-r--r-- | src/semver/semver.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/semver/semver.h b/src/semver/semver.h index 01a15fc43..e43f00463 100644 --- a/src/semver/semver.h +++ b/src/semver/semver.h @@ -21,9 +21,8 @@ extern "C" { */ typedef struct semver_version_s { - int major; - int minor; - int patch; + int * counters; + int counter_size; char * metadata; char * prerelease; } semver_t; @@ -72,7 +71,10 @@ int semver_parse (const char *str, semver_t *ver); int -semver_parse_version (const char *str, semver_t *ver); +semver_count_version(const char* str); + +int +semver_parse_version(const char* str, semver_t* ver); void semver_render (semver_t *x, char *dest); @@ -81,13 +83,13 @@ int semver_numeric (semver_t *x); void -semver_bump (semver_t *x); +semver_bump_major (semver_t *x); void semver_bump_minor (semver_t *x); void -semver_bump_patch (semver_t *x); +semver_bump (semver_t *x, int idx); void semver_free (semver_t *x); |