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 #ifndef DM_ASYNC_MESSAGEID_H 18 #define DM_ASYNC_MESSAGEID_H 19 20 #include "xpl_Message.h" 21 #include "xpl_Time.h" 22 23 24 enum { 25 SYNCML_DM_INIT_MSG_ID = XPL_DM_TASK_MESSAGE_CATEGORY, 26 SYNCML_DM_UNINIT_MSG_ID, 27 SYNCML_DM_GET_SUBTREE_MSG_ID, 28 SYNCML_DM_RELEASE_TREE_ID, 29 SYNCML_DM_START_SERVER_SESSION_MSG_ID, 30 SYNCML_DM_PROCESS_SCRIPT_MSG_ID, 31 SYNCML_DM_BOOTSTRAP_MSG_ID, 32 SYNCML_DM_PROCESS_NOTIFICATION_MSG_ID, 33 SYNCML_DM_GET_NODE_MSG_ID, 34 SYNCML_DM_RELEASE_NODE_MSG_ID, 35 SYNCML_DM_DELETE_NODE_MSG_ID, 36 SYNCML_DM_RENAME_NODE_MSG_ID, 37 SYNCML_DM_CREATE_INTERIOR_NODE_MSG_ID, 38 SYNCML_DM_CREATE_LEAF_NODE_MSG_ID, 39 SYNCML_DM_GET_CHULD_NODE_NAMES_MSG_ID, 40 SYNCML_DM_FLUSH_MSG_ID, 41 SYNCML_DM_COMMIT_MSG_ID, 42 SYNCML_DM_ROLLBACK_MSG_ID, 43 SYNCML_DM_BEGIN_MSG_ID, 44 SYNCML_DM_GET_CHILD_VALUES_MAP_MSG_ID, 45 SYNCML_DM_SET_CHILD_VALUES_MAP_MSG_ID, 46 SYNCML_DM_GET_ATTRIBUTES_MSG_ID, 47 SYNCML_DM_GET_VALUE_MSG_ID, 48 SYNCML_DM_SET_VALUE_MSG_ID, 49 SYNCML_DM_SET_TITLE_MSG_ID, 50 SYNCML_DM_SET_ACL_MSG_ID, 51 SYNCML_DM_EXECUTE_MSG_ID, 52 SYNCML_DM_NOTIFY_ON_IDLE_MSG_ID, 53 SYNCML_DM_TIMER_MSG_ID, 54 SYNCML_DM_TIMER_MSG_ID_LAST, 55 SYNCML_DM_TREE_AVAILABLE_MSG_ID, 56 SYNCML_DM_GET_FIRST_CHUNK_MSG_ID, 57 SYNCML_DM_GET_NEXT_CHUNK_MSG_ID, 58 SYNCML_DM_SET_FIRST_CHUNK_MSG_ID, 59 SYNCML_DM_SET_NEXT_CHUNK_MSG_ID, 60 SYNCML_DM_SET_LAST_CHUNK_MSG_ID 61 }; 62 typedef UINT32 SYNCML_DM_TASK_MESSAGE_ID; 63 64 #define SYNCML_DM_ASYNC_API_MESSAGE_COUNT (SYNCML_DM_SET_LAST_CHUNK_MSG_ID - SYNCML_DM_INIT_MSG_ID) 65 66 typedef struct 67 { 68 XPL_CLK_TIMER_CBACK callback; 69 XPL_TIMER_HANDLE_T timerHandle; 70 } SYNCML_DM_TIMER_MSG_T; 71 72 #endif 73