nancy.liao
2025-05-23 8553a8d63f97cfa8d64b5b2260e81f8c896a8398
src/library/licensecc.cpp
@@ -24,7 +24,8 @@
#include "limits/license_verifier.hpp"
#include "base/string_utils.h"
#include "LicenseReader.hpp"
#include "../test/functional/generate-license.h"
using namespace license;
using namespace std;
void print_error(char out_buffer[LCC_API_ERROR_BUFFER_SIZE], LicenseInfo* licenseInfo) {}
@@ -56,6 +57,7 @@
}
static void mergeLicenses(const vector<LicenseInfo>& licenses, LicenseInfo* license_out) {
   if (license_out != nullptr) {
      int days_left = INT_MIN;
      for (auto it = licenses.begin(); it != licenses.end(); it++) {
@@ -70,7 +72,6 @@
      }
   }
}
LCC_EVENT_TYPE acquire_license(const CallerInformations* callerInformation, const LicenseLocation* licenseLocation,
                        LicenseInfo* license_out) {
   const license::LicenseReader lr = license::LicenseReader(licenseLocation);
@@ -131,9 +132,12 @@
   if (license_out != nullptr) {
      er.exportLastEvents(license_out->status, LCC_API_AUDIT_EVENT_NUM);
   }
   return result;
}
LCC_EVENT_TYPE confirm_license(char* product, LicenseLocation licenseLocation) { return LICENSE_OK; }
LCC_EVENT_TYPE release_license(char* product, LicenseLocation licenseLocation) { return LICENSE_OK; }