PGSLIC.lib  3.0
pgslic.h
Go to the documentation of this file.
1 #ifndef _SSLIC_PGSLIC_H
2 #define _SSLIC_PGSLIC_H
3 /*
4  * Copyright (c) 2017 Nuvovis All Right Reserved.
5  *
6  * You can modify the examples shown here but you should not modify the PGSLIC
7  * library itself. This library is free software; you can redistribute it, and
8  * include it in your own commercial or non-commercial software free of charge.
9  *
10  */
11 
36 #ifdef _MSC_VER
37 #ifdef PGSLIC_EXPORTS
38 #define PGSLIC_API __declspec(dllexport)
39 #else
40 #define PGSLIC_API __declspec(dllimport)
41 #endif
42 #else
43 #define PGSLIC_API
44 #endif
45 
46 #include <cstddef>
47 
48 #ifdef __cplusplus
49 extern "C"
50 {
51  namespace nuvovis
52  {
53 #endif
54 
97 
157  PGSLIC_API
159  const char* licPath,
160  const char* pwd,
161  const char* key,
162  const char* appName,
163  const char* appInfo = "",
164  const char* cxnOpts = "");
165 
177  PGSLIC_API
178  LicenseStatus release(const char* pwd);
179 
187  PGSLIC_API
188  const char* getAppName();
189 
196  PGSLIC_API
197  const char* getExpiryDate();
198 
204  PGSLIC_API
205  int isPerpetual();
206 
212  PGSLIC_API
214 
221  PGSLIC_API
222  const char* getClientName();
223 
230  PGSLIC_API
231  const char* getSettings();
232 
242  PGSLIC_API
243  const char* getSetting(const char* settingName);
244 
250  PGSLIC_API
251  const char* getLastError();
252 
259  PGSLIC_API
261 
262 #ifdef __cplusplus
263  }
264 }
265 #endif
266 
267 #endif /* _SSLIC_PGSLIC_H */
PGSLIC_API const char * getSetting(const char *settingName)
PGSLIC_API int isPerpetual()
PGSLIC_API const char * getExpiryDate()
PGSLIC_API const char * getAppName()
PGSLIC_API int getDaysUntilExpiry()
LicenseStatus
Definition: pgslic.h:96
@ LICENSE_STALE
Definition: pgslic.h:96
@ LICENSE_WARNING
Definition: pgslic.h:96
@ LICENSE_EXPIRED
Definition: pgslic.h:96
@ LICENSE_OK
Definition: pgslic.h:96
@ LICENSE_ERROR
Definition: pgslic.h:96
PGSLIC_API const char * getClientName()
PGSLIC_API const char * getSettings()
PGSLIC_API int getStaleTime()
PGSLIC_API LicenseStatus release(const char *pwd)
PGSLIC_API const char * getLastError()
PGSLIC_API LicenseStatus checkLicense(const char *licPath, const char *pwd, const char *key, const char *appName, const char *appInfo="", const char *cxnOpts="")