Knox Tizen Wearable SDK
knox_custom_client_type.h
1 /*
2  * libknoxcustom
3  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4  * All rights reserved.
5  *
6  * This software contains confidential and proprietary information
7  * of Samsung Electronics Co., Ltd.
8  * The user of this software agrees not to disclose, disseminate or copy such
9  * Confidential Information and shall use the software only in accordance with
10  * the terms of the license agreement the user entered into with Samsung.
11  */
12 
13 /*
14  * @brief This file serves as an interface between the Application and KNOXCUSTOM server daemon.
15  */
16 
17 #ifndef __KNOX_CUSTOM_CLIENT_TYPE_H__
18 #define __KNOX_CUSTOM_CLIENT_TYPE_H__
19 
20 #include <glib.h>
21 #include "tizen_error.h"
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26 
35 typedef enum {
36  KNOX_RESULT_SERVICE_NOT_ENABLED = TIZEN_ERROR_NOT_PERMITTED,
37  KNOX_RESULT_ACCESS_DENIED = TIZEN_ERROR_PERMISSION_DENIED,
38  KNOX_RESULT_INVALID_PARAM = TIZEN_ERROR_INVALID_PARAMETER,
39  KNOX_RESULT_INVALID_PACKAGE = TIZEN_ERROR_APPLICATION,
40  KNOX_RESULT_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED,
41  KNOX_RESULT_FAIL = TIZEN_ERROR_UNKNOWN,
42  KNOX_RESULT_SUCCESS = TIZEN_ERROR_NONE,
43  KNOX_RESULT_PROKIOSK_ALREADY_ENABLED = TIZEN_ERROR_ALREADY_IN_PROGRESS,
44  KNOX_RESULT_PROKIOSK_NOT_ENABLED = TIZEN_ERROR_INVALID_OPERATION,
45  KNOX_RESULT_PACKAGE_NOT_FOUND = TIZEN_ERROR_PACKAGE_MANAGER,
46  KNOX_RESULT_POLICY_RESTRICTED = TIZEN_ERROR_DEVICE_POLICY_RESTRICTION,
47  KNOX_RESULT_WIDGET_OVER_MAX_COUNT = TIZEN_ERROR_ARGUMENT_OUT_OF_DOMAIN,
48  KNOX_RESULT_WIDGET_ALREADY_ADDED = TIZEN_ERROR_ADDRES_IN_USE,
49 #ifndef DOXYGEN_SKIP_CREATE_LOG_DUMP
50  KNOX_RESULT_NOT_ENOUGH_SPACE = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE,
51  KNOX_RESULT_NOW_IN_PROGRESS = TIZEN_ERROR_NOW_IN_PROGRESS,
52 #endif /* DOXYGEN_SKIP_CREATE_LOG_DUMP */
54 
59 typedef enum {
66 
72 typedef struct _custom_mem_header {
73  int id;
74  void (* free_func)(void *block);
76 
81 typedef struct _knox_custom_data {
82  knox_result_t ret;
84  void *data;
85  int value;
87 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* __KNOX_CUSTOM_CLIENT_TYPE_H__ */
This structure is used to store GList.
knox_result_t
KNOX_CUSTOM API result.
knox_custom_status_t
KNOX_CUSTOM Policy status.
custom_mem_header_t mem_header
Place at the front of any structure or block of memory that is intended to be disowned by the allocat...