LicenseSpring C++ SDK
Easily add Software Licensing to your application
LicenseID.h
Go to the documentation of this file.
1 #ifndef LS_C_LICENSE_ID_H
2 #define LS_C_LICENSE_ID_H
3 
4 #include "../APIDef.h"
5 #include <stdint.h>
6 
7 #ifdef __cplusplus
8 extern "C"
9 {
10 #endif
11 
12  LS_API typedef struct LSLicenseID
13  {
14  const char *key;
15  const char *user;
16  const char *password;
17  uint64_t serverId;
18  } LSLicenseID;
19 
20  LS_API LSLicenseID CreateLicenseIDfromKey(const char *licenseKey);
21  LS_API LSLicenseID CreateLicenseIDfromUser(const char *user, const char *password);
23  const char *user, uint64_t serverId, const char *password);
24 
25 #ifdef __cplusplus
26 } // end extern "C"
27 #endif
28 
29 #endif // LS_C_LICENSE_ID_H
LS_API LSLicenseID CreateLicenseIDfromUser(const char *user, const char *password)
const char * key
Definition: LicenseID.h:14
LS_API struct LSLicenseID LSLicenseID
LS_API LSLicenseID CreateLicenseIDfromUserServerId(const char *user, uint64_t serverId, const char *password)
uint64_t serverId
Definition: LicenseID.h:17
#define LS_API
Definition: APIDef.h:23
const char * user
Definition: LicenseID.h:15
const char * password
Definition: LicenseID.h:16
LS_API LSLicenseID CreateLicenseIDfromKey(const char *licenseKey)