Tizen 2.1 base
[platform/core/system/sync-agent.git] / test / dummy_project / src / plugins / dummy / pm-dummy / src / plugin_interface.c
1 /*
2  * sync-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 #include <stdlib.h>
19
20 #include "plugin/platform_monitor_interface.h"
21 #include "utility/sync_util.h"
22
23 #ifndef EXPORT_API
24 #define EXPORT_API __attribute__ ((visibility("default")))
25 #endif
26
27 #ifndef OMADS_AGENT_LOG
28 #undef LOG_TAG
29 #define LOG_TAG "PLUGIN_PM_DUMMY"
30 #endif
31
32 EXPORT_API void sync_agent_plugin_init_service_noti(void *data)
33 {
34         _EXTERN_FUNC_ENTER;
35
36         _EXTERN_FUNC_EXIT;
37 }
38
39 EXPORT_API sync_agent_pm_return_e sync_agent_plugin_remove_service_data(int remove_data_id)
40 {
41         _EXTERN_FUNC_ENTER;
42
43         sync_agent_pm_return_e ret = SYNC_AGENT_PM_SUCCESS;
44
45         _EXTERN_FUNC_EXIT;
46
47         return ret;
48 }
49
50 EXPORT_API sync_agent_pm_return_e sync_agent_plugin_get_service_data(int get_data_id, void **service_data)
51 {
52         _EXTERN_FUNC_ENTER;
53
54         sync_agent_pm_return_e ret = SYNC_AGENT_PM_SUCCESS;
55
56         *service_data = strdup("dummy_data");
57
58         _EXTERN_FUNC_EXIT;
59
60         return ret;
61 }