upload tizen1.0 source
[pkgs/o/oma-ds-service.git] / include / Framework / Event / OMA_DS_Platform_Event_Handler.h
1 /*
2  * oma-ds-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JuHak Park <juhaki.park@samsung.com>,
7  *          JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8  *          SunBong Ha <sunbong.ha@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25
26
27
28 /*
29  * For any sort of issue you concern as to this software,
30  * you may use following point of contact.
31  * All resources contributed on this software
32  * are orinigally written by S-Core Inc., a member of Samsung Group.
33  *
34  * SeongWon Shim <seongwon.shim@samsung.com>
35  */
36
37 /**
38  *   @OMA_DS_Platform_Event_Handler.h
39  *   @version                                                                   0.1
40  *   @brief                                                                             This file is the header file of interface for event callback function(platform monitor)
41  */
42
43 #ifndef OMA_DS_PLATFORM_EVENT_HANDLER_H_
44 #define OMA_DS_PLATFORM_EVENT_HANDLER_H_
45
46 #include <glib.h>
47 #include <stdio.h>
48 #include <stdbool.h>
49
50 /**
51  * @par Description: API to parse callback function for SAN
52  *
53  *
54  * @par Purpose:
55  * @par Typical use case:
56  * @par Method of function operation:
57  * @par Important notes:
58  * @param[in]           string type, msg body
59  * @param[in]           unsigned int type, size of msg
60  * @param[in]           int type, version
61  * @param[out]
62  *
63  * @return                              0 on success
64  *
65  * @par Errors:
66  *
67  * @pre None.
68  * @post
69  * @see
70  * @remarks None.
71  *
72  * @par Sample Code:
73  * @code
74  * @endcode
75  */
76 int SAN_callback_parse(const char *msgBody, unsigned int msgSize, int version);
77
78 /**
79  * @par Description: This API is callback function for scheduler
80  *
81  *
82  * @par Purpose:
83  * @par Typical use case:
84  * @par Method of function operation:
85  * @par Important notes:
86  * @param[in]           scheduler Id
87  * @param[in]           user data
88  * @param[out]
89  *
90  * @return
91  *
92  * @par Errors:
93  *
94  * @pre None.
95  * @post
96  * @see
97  * @remarks None.
98  *
99  * @par Sample Code:
100  * @code
101  * @endcode
102  */
103 void send_periodic_sync_msg(int schedulerId, void *data);
104
105 #endif /* OMA_DS_PLATFORM_EVENT_HANDLER_H_ */