Gabriele Contini
2020-01-11 2695752f624aa7dc3f91672c6fbeb894c22eaa47
include/licensecc/licensecc.h
@@ -12,13 +12,14 @@
/*
 * Method used to convert the LicenseInfo into a human readable
 * representation.
 * representation. //not yet implemented
 */
void print_error(char out_buffer[256], LicenseInfo* licenseInfo);
void print_error(char out_buffer[API_ERROR_BUFFER_SIZE], LicenseInfo* licenseInfo);
/**
 * This method calculate the pc identifier. The string has to be shown
 * to the user in order to calculate the license.
 * This method calculates the pc identifier. The string need to be shown to the user and given back to the software
 * editor when issuing a license.
 *  pc_id_method = STRATEGY_DEFAULT usually works.
 */
bool identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char* identifier_out, size_t* bufSize);
@@ -43,13 +44,11 @@
 * Should be called from time to time to confirm we're still using the
 * license.
 */
EVENT_TYPE confirm_license(char * featureName,
      LicenseLocation* licenseLocation);
EVENT_TYPE confirm_license(char* featureName, LicenseLocation* licenseLocation);
/**
 * Do nothing for now, useful for network licenses.
 */
EVENT_TYPE release_license(char * featureName,
      LicenseLocation licenseLocation);
EVENT_TYPE release_license(char* featureName, LicenseLocation licenseLocation);
#ifdef __cplusplus
}