    

 ## On this page

  

 

 # License Handling

 Last update: 10.02.2025 

## <a name="member-group"></a>License handling

<a class="anchor" id="amgrp5aa9df55bb9670210fd98f098d10865b"></a> API handling licenes requests

DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) [FMOP\_appendLicenseSearchPath](group__license__handling.xhtml#ga7086f4db3e639526b2b7fe9ce9392a24) (const char \*abs\_path) Appends another license search path to the default ones. [More...](#ga7086f4db3e639526b2b7fe9ce9392a24)  
 DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) [FMOP\_acquireLicense](group__license__handling.xhtml#ga1cdd0d44e0ea8172b1f7f1095395da89) () Acquires an optiSLang enterprise license. [More...](#ga1cdd0d44e0ea8172b1f7f1095395da89)  
 DYNARDO\_FMOP\_API bool [FMOP\_licenseLocked](group__license__handling.xhtml#ga462a99c932a9b5704aae42a15826e4c3) () Check whether any license feature was acquired. [More...](#ga462a99c932a9b5704aae42a15826e4c3)  
 DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) [FMOP\_releaseLicense](group__license__handling.xhtml#ga62d038d686a8183e10f52131697bce6c) () Release the acquired license. [More...](#ga62d038d686a8183e10f52131697bce6c)  
 <a id="details" name="details"></a>## Detailed Description

## Function Documentation

<a id="ga1cdd0d44e0ea8172b1f7f1095395da89"></a>## [◆ ](#ga1cdd0d44e0ea8172b1f7f1095395da89)FMOP\_acquireLicense()

 DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) FMOP\_acquireLicense  ( ) 

Acquires an optiSLang enterprise license.

Returns- [fmop\_settings\_error](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca4040927e4d05d13e93b9f2c7373ca0cd "Input argument(s) is invalid or missing. ") if a license has already been acquired successfully
- [fmop\_exception\_occurred](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8becadac3d9086cdab852d265dc924070c198 "An internal error occurred. Request log messages. ") if any error occures while checking out the requested feature(s)
- [fmop\_success](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca41a0a2e83b0ac20d414f4b015522ce55 "Function execution returned successfully. ") if a license has been acquired successfully

Call [FMOP\_getErrnoString()](group__error__handling.xhtml#ga7e820b85d2ef2596b00bc82445dcf650 "Returns a string description for the error number given. ") to get a human readable representation 



<a id="ga7086f4db3e639526b2b7fe9ce9392a24"></a>## [◆ ](#ga7086f4db3e639526b2b7fe9ce9392a24)FMOP\_appendLicenseSearchPath()

 DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) FMOP\_appendLicenseSearchPath  ( const char \*  *abs\_path*) 

Appends another license search path to the default ones.

**[Deprecated:](deprecated.xhtml#_deprecated000001)**Since 2022 R2. Will be removed in 2023 R1 By default the following license search paths will be checked in the order given:

- @localhost
- the current working directory
- the path pointed to by the environment variable 'LM\_LICENSE\_FILE'
- the path pointed to by the environment variable 'DYNARDO\_LICENSE\_FILE'

Parameters \[in\]abs\_pathAn absolute file system path, e.g. '/opt/DYNARDO/licensing', 'D:\\Licenses', ... Returns- [fmop\_settings\_error](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca4040927e4d05d13e93b9f2c7373ca0cd "Input argument(s) is invalid or missing. ") if the path given does not exist
- [fmop\_exception\_occurred](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8becadac3d9086cdab852d265dc924070c198 "An internal error occurred. Request log messages. ") if the path given invoces any other filesystem error
- [fmop\_success](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca41a0a2e83b0ac20d414f4b015522ce55 "Function execution returned successfully. ") if the path has been appended successfully

Call [FMOP\_getErrnoString()](group__error__handling.xhtml#ga7e820b85d2ef2596b00bc82445dcf650 "Returns a string description for the error number given. ") to get a human readable representation 



<a id="ga462a99c932a9b5704aae42a15826e4c3"></a>## [◆ ](#ga462a99c932a9b5704aae42a15826e4c3)FMOP\_licenseLocked()

 DYNARDO\_FMOP\_API bool FMOP\_licenseLocked  ( ) 

Check whether any license feature was acquired.

ReturnsTrue if any license feature is locked, false otherwise 



<a id="ga62d038d686a8183e10f52131697bce6c"></a>## [◆ ](#ga62d038d686a8183e10f52131697bce6c)FMOP\_releaseLicense()

 DYNARDO\_FMOP\_API [fmop\_error\_t](group__types.xhtml#ga4847f3fa2943ffd694eb6cbe169a8bec) FMOP\_releaseLicense  ( ) 

Release the acquired license.

Note, that no previously acquired license is released if not all loaded Database and FMOP objects are already released

Returns- [fmop\_settings\_error](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca4040927e4d05d13e93b9f2c7373ca0cd "Input argument(s) is invalid or missing. ") if any Database or FMOP object is not already released
- [fmop\_success](group__types.xhtml#gga4847f3fa2943ffd694eb6cbe169a8beca41a0a2e83b0ac20d414f4b015522ce55 "Function execution returned successfully. ") in all other cases

Call [FMOP\_getErrnoString()](group__error__handling.xhtml#ga7e820b85d2ef2596b00bc82445dcf650 "Returns a string description for the error number given. ") to get a human readable representation