From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: ćšć, 29 5æ 2025 18:14:38 +0800 Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop --- include/licensecc/datatypes.h | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/include/licensecc/datatypes.h b/include/licensecc/datatypes.h index f99e232..4bb4044 100644 --- a/include/licensecc/datatypes.h +++ b/include/licensecc/datatypes.h @@ -91,11 +91,26 @@ } LicenseLocation; /** - * Informations on the software requiring the license + * Informations about the software requesting the license verification (eg, software version, feature to verify). */ typedef struct { - char version[LCC_API_VERSION_LENGTH + 1]; // software version in format xxxx[.xxxx.xxxx] //TODO - char project_name[LCC_API_PROJECT_NAME_SIZE + 1]; // name of the project (must correspond to the name in the license) + /** + * software version in format xxxx[.xxxx.xxxx] + * NOT IMPLEMENTED pass '\0' + */ + char version[LCC_API_VERSION_LENGTH + 1]; + /** + * Name of the feature you want to verify. If empty ('\0') the 'default' feature will be verified. + * (every project has a default feature that is equal to the project name). + * Every feature has a separate section in the license file: + * <pre> + * [feature_xx] + * sig=AAAA + * [another_feature] + * expiry-date=20201111 + * </pre> + */ + char feature_name[LCC_API_FEATURE_NAME_SIZE + 1]; /** * this number passed in by the application must correspond to the magic number used when compiling the library. * See cmake parameter -DLCC_PROJECT_MAGIC_NUM and licensecc_properties.h macro VERIFY_MAGIC @@ -126,7 +141,7 @@ int license_version; // license file version } LicenseInfo; -typedef enum { BARE_TO_METAL, VMWARE, VIRTUALBOX, V_XEN, KVM, HV, V_OTHER } LCC_API_VIRTUALIZATION_DETAIL; +typedef enum { BARE_TO_METAL, VMWARE, VIRTUALBOX, V_XEN, KVM, HV, PARALLELS, V_OTHER } LCC_API_VIRTUALIZATION_DETAIL; typedef enum { PROV_UNKNOWN = 0, -- Gitblit v1.9.1