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