| LicenseSpring C++ SDK 7.27.0 Easily add Software Licensing to your application

ProductDetails.h
Go to the documentation of this file.
1 #ifndef LS_C_PRODUCT_DETAILS_H
2 #define LS_C_PRODUCT_DETAILS_H
3
4 #include "../APIDef.h"
5 #include "../PODTypes.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 LS_API typedef struct LSProductDetails
12 {
13 bool ( *isTrialAllowed )( struct LSProductDetails* self );
14
15 bool ( *isVMAllowed )( struct LSProductDetails* self );
16
17 unsigned long ( *trialPeriod )( struct LSProductDetails* self );
18
19 unsigned long ( *floatingLicenseTimeout )( struct LSProductDetails* self );
20
21 const char* ( *productName )( struct LSProductDetails* self );
22
23 const char* ( *productCode )( struct LSProductDetails* self );
24
25 enum LSAuthMethod( *authorizationMethod )( struct LSProductDetails* self );
26
27 const char* ( *metadata )( struct LSProductDetails* self );
28
29 void* inner;
30
31 } LSProductDetails;
32
33 LS_API LSProductDetails* CreateLSProductDetails();
34
35 LS_API void FreeLSProductDetails( LSProductDetails* details );
36
37 #ifdef __cplusplus
38 } // end extern "C"
39 #endif
40
41 #endif // LS_C_PRODUCT_DETAILS_H
LSProductDetails::floatingLicenseTimeout
unsigned long(* floatingLicenseTimeout)(struct LSProductDetails *self)
Definition: ProductDetails.h:19
LSProductDetails::trialPeriod
unsigned long(* trialPeriod)(struct LSProductDetails *self)
Definition: ProductDetails.h:17
LSProductDetails::isVMAllowed
bool(* isVMAllowed)(struct LSProductDetails *self)
Definition: ProductDetails.h:15
LSAuthMethod
LSAuthMethod
Product authorization method.
Definition: PODTypes.h:9
LSProductDetails::authorizationMethod
enum LSAuthMethod(* authorizationMethod)(struct LSProductDetails *self)
Definition: ProductDetails.h:25
CreateLSProductDetails
LS_API LSProductDetails * CreateLSProductDetails()
LSProductDetails::isTrialAllowed
bool(* isTrialAllowed)(struct LSProductDetails *self)
Definition: ProductDetails.h:13
FreeLSProductDetails
LS_API void FreeLSProductDetails(LSProductDetails *details)
LSProductDetails::inner
void * inner
Definition: ProductDetails.h:29
LS_API
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22
LSProductDetails
LS_API struct LSProductDetails LSProductDetails
LSProductDetails
Definition: ProductDetails.h:11