libropkg: implement package version API

This commit is contained in:
2025-07-21 22:45:31 +01:00
parent 2480e9950c
commit 49d313400c
3 changed files with 557 additions and 0 deletions

17
libropkg/version.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _VERSION_H_
#define _VERSION_H_
#include <ropkg/version.h>
struct ropkg_version {
enum ropkg_version_release_phase v_release_phase;
unsigned int v_upstream_version[ROPKG_VERSION_UPSTREAM_DIGIT_MAX];
enum ropkg_version_release_phase v_version_release_phase;
unsigned int v_version_release_phase_revision;
unsigned int v_package_revision;
};
#endif