You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

The LMX_Checkin function will return the licenses for a single checked in feature or all checked in features.

Prototype

LMX_STATUS LMX_Checkin
(
   LMX_HANDLE LmxHandle,
   const char *szFeatureName,
   int nCount
);

Parameters

LmxHandle
[in/out] LM-X handle.

szFeatureName
[in] Feature name. Use parameter LMX_ALL_FEATURES to check in all features.

nCount
[in] Number of licenses to check in.

Use parameter LMX_ALL_LICENSES to check in all licenses.

Return values

None.

Remarks

If all licenses are returned to a license server, the licensing system will also ensure that the network connection is closed.

Using LMX_ALL_FEATURES with borrow early return is not supported. Instead, check in the features individually.

Example

The following example returns a license for feature "f2" to a license server.

#include <lmx.h>
#include <stdio.h>

LMX_HANDLE h;

int main() {
  exit_on_error(LMX_Init(&h));
  exit_on_error(LMX_Checkin(h, "f2", 1));
  return 0;
}


  • No labels