Initialize Tizen 2.3
[framework/system/oma-dm-agent.git] / include / dm-engine / cp / dm_cp_parser.h
1 /*
2  * oma-dm-agent
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 #ifndef DM_CP_PARSER_H_
19 #define DM_CP_PARSER_H_
20
21 /*dm-agent*/
22 #include "dm_cp_struct.h"
23
24 typedef enum {
25         CP_TYPE_XML = 1,
26         CP_TYPE_WBXML,
27         CP_TYPE_NONE
28 } CP_TYPE;
29
30 typedef enum {
31         TNDS_TAG_CHARACTERISTIC_START
32 } CP_TAG;
33
34 /**
35  * @par Description: API to parsing cp stream
36  *
37  *
38  * @par Purpose:
39  * @par Typical use case:
40  * @par par Method of function operation:
41  * @par Important notes:
42  * @param[in]           cp type
43  * @param[in]           wbxml
44  * @param[in]           msg size
45  *
46  * @return              DM_CP (cp structure)
47  *
48  * @par Errors:
49  *
50  * @pre None.
51  * @post
52  * @see
53  * @remarks None.
54  *
55  * @par Sample Code:
56  * @code
57  * @endcode
58  */
59 DM_CP *parsing_cp_stream(CP_TYPE cp_type, const char *wbxml_stream, unsigned int msgSize);
60
61 #endif                          /* DM_CP_PARSER_H_ */