FreeRDP
Loading...
Searching...
No Matches
include/freerdp/license.h
1
22#ifndef FREERDP_LICENSE_H
23#define FREERDP_LICENSE_H
24
25#include <freerdp/api.h>
26#include <freerdp/types.h>
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33 typedef enum
34 {
35 LICENSE_STATE_INITIAL,
36 LICENSE_STATE_CONFIGURED,
37 LICENSE_STATE_REQUEST,
38 LICENSE_STATE_NEW_REQUEST,
39 LICENSE_STATE_PLATFORM_CHALLENGE,
40 LICENSE_STATE_PLATFORM_CHALLENGE_RESPONSE,
41 LICENSE_STATE_COMPLETED,
42 LICENSE_STATE_ABORTED
43 } LICENSE_STATE;
44
45 typedef enum
46 {
47 LICENSE_TYPE_INVALID = 0,
48 LICENSE_TYPE_NONE,
49 LICENSE_TYPE_ISSUED
50 } LICENSE_TYPE;
51
52 typedef struct rdp_license rdpLicense;
53
54 FREERDP_API rdpLicense* license_get(rdpContext* context);
55 FREERDP_API LICENSE_STATE license_get_state(const rdpLicense* license);
56 FREERDP_API LICENSE_TYPE license_get_type(const rdpLicense* license);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* FREERDP_LICENSE_H */