Knox Tizen Wearable SDK
license.h
1 /*
2  * Copyright (c) 2000-2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of
7  * SAMSUNG ELECTRONICS ("Confidential Information").
8  * You shall not disclose such Confidential Information and shall
9  * use it only in accordance with the terms of the license agreement
10  * you entered into with SAMSUNG ELECTRONICS.
11  * SAMSUNG make no representations or warranties about the suitability
12  * of the software, either express or implied, including but not
13  * limited to the implied warranties of merchantability, fitness for
14  * a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as
16  * a result of using, modifying or distributing this software or its derivatives.
17  */
18 
19 #ifndef LIBMDM_MDM_LICENSE_H
20 #define LIBMDM_MDM_LICENSE_H
21 
22 #include "mdm_client_type.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
33 typedef enum {
37  MDM_CB_LICENSE_ACTIVATE,
38 
42  MDM_CB_LICENSE_ACTIVATE_KNOX,
43 
47  MDM_CB_LICENSE_DEACTIVATE_KNOX,
48 
52  MDM_CB_LICENSE_VALIDATE_RESULT,
53 
57  MDM_CB_LICENSE_KNOX_VALIDATE_RESULT
58 } mdm_license_cb;
59 
65 typedef struct {
69  char *pkg;
70 
74  char *status;
75 
81 
85  char *error_desc;
86 
90  char *id;
92 
98 typedef union {
99 
105 
192 mdm_data_t *mdm_activate_license(const char *pkg, const char *license_key);
193 
275 mdm_data_t *mdm_activate_knox_license(const char *pkg, const char *license_key);
276 
347 mdm_data_t *mdm_deactivate_knox_license(const char *pkg, const char *license_key);
348 
387 mdm_data_t *mdm_get_api_call_data(const char *pkg);
388 
393 #ifdef __cplusplus
394 }
395 #endif
396 
397 #endif // LIBMDM_MDM_LICENSE_H
Knox license management callback data structure.
Definition: license.h:65
This structure is used to store GList.
mdm_data_t * mdm_get_api_call_data(const char *pkg)
API to retrieve API call data for the given packagename on device.
char * id
For future use.
Definition: license.h:90
mdm_data_t * mdm_deactivate_knox_license(const char *pkg, const char *license_key)
Asynchronous API to deactivate Knox license.
char * error_desc
Error description.
Definition: license.h:85
char * pkg
Package name.
Definition: license.h:69
mdm_license_operation_info_cb_t * license_info
License info.
Definition: license.h:103
Main license management callback data structure that will be passed into callback.
Definition: license.h:98
int error_code
Error code. MDM_RESULT_SUCCESS - on success.
Definition: license.h:80
mdm_data_t * mdm_activate_license(const char *pkg, const char *license_key)
Asynchronous API to activate Enterprise license.
mdm_data_t * mdm_activate_knox_license(const char *pkg, const char *license_key)
Asynchronous API to activate Knox Enterprise license.