semver-utils  1.1.2
Classes | Typedefs | Functions
libsemver.h File Reference

Header of the libsemver library. More...

#include <stdbool.h>

Go to the source code of this file.

Classes

struct  semver_t
 

Typedefs

typedef struct semver_t semver_t
 

Functions

int semver_last_error ()
 
semver_tsemver_from_string (const char *str)
 
semver_tsemver_create (const unsigned int *c_vers, const unsigned long c_vers_num, const char *prerelease, const char *metadata)
 
void semver_free (semver_t *ver)
 
const char * semver_str (semver_t *ver)
 
unsigned int * semver_get_versions (semver_t *ver)
 
unsigned int semver_get_version (semver_t *ver, unsigned int index)
 
const char * semver_get_prerelease (semver_t *ver)
 
const char * semver_get_metadata (semver_t *ver)
 
semver_tsemver_bump_major (semver_t *ver)
 
semver_tsemver_bump_minor (semver_t *ver)
 
semver_tsemver_bump_patch (semver_t *ver)
 
semver_tsemver_bump (semver_t *ver, unsigned int index)
 
semver_tsemver_strip_prerelease (semver_t *ver)
 
semver_tsemver_strip_metadata (semver_t *ver)
 
bool semver_is_release (semver_t *ver)
 
bool semver_equals (semver_t *lh, semver_t *rh)
 
bool semver_is_less (semver_t *lh, semver_t *rh)
 
bool semver_is_greater (semver_t *lh, semver_t *rh)
 

Detailed Description

Header of the libsemver library.

This header file defines the API of the libsemver library.

License:
GNU General Public License v. 3.0
Author
Enrico M. Crisostomo
Version
1.0.0