1 /* 2 * Copyright (C) 2014 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /*============================================================================ 18 19 Header Name: dmtAsyncMessage.h 20 21 General Description: This file contains declaration of structures for 22 async APIs 23 24 ==============================================================================*/ 25 26 #ifndef DMT_ASYNC_MESSAGE_H 27 #define DMT_ASYNC_MESSAGE_H 28 29 /************** HEADER FILE INCLUDES *****************************************/ 30 31 #include "dmtAsyncData.h" 32 33 /************** STRUCTURES, ENUMS, AND TYPEDEFS ******************************/ 34 35 typedef struct 36 { 37 DMT_CallbackStatusCode callback; 38 UINT32 messageID; 39 UINT32 pUserData; 40 } SYNCML_DM_ENGINE_MESSAGE_T; 41 42 43 typedef struct 44 { 45 DMT_CallbackNotifyOnIdle callback; 46 UINT32 messageID; 47 UINT32 pUserData; 48 } SYNCML_DM_NOTIFY_MESSAGE_T; 49 50 typedef struct 51 { 52 DMGetSubTreeMessage * pMsg; 53 } SYNCML_DM_GET_SUB_TREE_MESSAGE_T; 54 55 56 typedef struct 57 { 58 DMProcessScriptMessage * pMsg; 59 } SYNCML_DM_PROCESS_SCRIPT_MESSAGE_T; 60 61 typedef struct 62 { 63 DMBootstrapMessage * pMsg; 64 } SYNCML_DM_BOOTSTRAP_MESSAGE_T; 65 66 67 typedef struct 68 { 69 DMStartServerSessionMessage * pMsg; 70 } SYNCML_DM_START_SERVER_SESSION_MESSAGE_T; 71 72 typedef struct 73 { 74 DMProcessNotificationMessage * pMsg; 75 } SYNCML_DM_PROCESS_NOTIFICATION_MESSAGE_T; 76 77 typedef struct 78 { 79 DMGetNodeMessage * pMsg; 80 } SYNCML_DM_GET_NODE_MESSAGE_T; 81 82 83 typedef struct 84 { 85 DMTreeNodeMessage * pMsg; 86 } SYNCML_DM_TREENODE_MESSAGE_T; 87 88 89 typedef struct 90 { 91 DMCreateLeafNodeMessage * pMsg; 92 } SYNCML_DM_CREATE_LEAF_NODE_MESSAGE_T; 93 94 95 typedef struct 96 { 97 DMGetChildNodeNamesMessage * pMsg; 98 } SYNCML_DM_GET_CHILD_NODE_NAMES_MESSAGE_T; 99 100 101 typedef struct 102 { 103 DMT_H_TREE htree; 104 DMT_CallbackStatusCode callback; 105 UINT32 messageID; 106 UINT32 pUserData; 107 } SYNCML_DM_TREE_MESSAGE_T; 108 109 110 111 typedef struct 112 { 113 DMGetChildValuesMapMessage * pMsg; 114 } SYNCML_DM_GET_CHILD_VALUES_MAP_MESSAGE_T; 115 116 117 typedef struct 118 { 119 DMSetChildValuesMapMessage * pMsg; 120 } SYNCML_DM_SET_CHILD_VALUES_MAP_MESSAGE_T; 121 122 123 typedef struct 124 { 125 DMT_H_NODE hnode; 126 DMT_CallbackGetAttributes callback; 127 UINT32 messageID; 128 UINT32 pUserData; 129 } SYNCML_DM_GET_ATTRIBUTES_MESSAGE_T; 130 131 132 typedef struct 133 { 134 DMT_H_NODE hnode; 135 DMT_CallbackGetValue callback; 136 UINT32 messageID; 137 UINT32 pUserData; 138 } SYNCML_DM_GET_VALUE_MESSAGE_T; 139 140 typedef struct 141 { 142 DMSetValueMessage * pMsg; 143 } SYNCML_DM_SET_VALUE_MESSAGE_T; 144 145 typedef struct 146 { 147 DMNodeMessage * pMsg; 148 } SYNCML_DM_NODE_MESSAGE_T; 149 150 151 typedef struct 152 { 153 DMExecuteMessage * pMsg; 154 } SYNCML_DM_EXECUTE_MESSAGE_T; 155 156 #ifdef LOB_SUPPORT 157 typedef struct 158 { 159 DMT_H_NODE hnode; 160 DMT_DATACHUNK_T *datachunk; 161 DMT_CallbackDataChunk callback; 162 UINT32 messageID; 163 UINT32 pUserData; 164 } SYNCML_DM_DATA_CHUNK_MESSAGE_T; 165 #endif 166 167 #endif 168