From 91e1b0675d531e87a8866ab6595692a3fa52c322 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <gcontini@users.noreply.github.com> Date: 周六, 14 12月 2019 13:56:41 +0800 Subject: [PATCH] Merge pull request #69 from open-license-manager/feature/issue_licenses_42 --- include/licensecc/licensecc.h | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/library/api/license++.h b/include/licensecc/licensecc.h similarity index 82% rename from src/library/api/license++.h rename to include/licensecc/licensecc.h index ef1fbb6..353eba8 100644 --- a/src/library/api/license++.h +++ b/include/licensecc/licensecc.h @@ -20,15 +20,11 @@ * This method calculate the pc identifier. The string has to be shown * to the user in order to calculate the license. */ -void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, - char chbuffer[PC_IDENTIFIER_SIZE + 1]); - +bool identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char* identifier_out, size_t bufSize); /** * This method is used to request the use of one license for a product. * In case of local license it's used to check if the product is licensed. - * [In case of network licenses this will decrease the count of the available - * licenses] * * @return LICENSE_OK(0) if successful. Other values if there are errors. * @param productName[in] @@ -39,8 +35,8 @@ * @param license[out] optional, can be NULL, if set it will return extra informations about the license. */ -EVENT_TYPE acquire_license(const char * productName, - const LicenseLocation* licenseLocation, LicenseInfo* license); +EVENT_TYPE acquire_license(const CallerInformations* callerInformation, const LicenseLocation* licenseLocation, + LicenseInfo* license_out); /** * Do nothing for now, useful for network licenses. -- Gitblit v1.9.1