Add 3.0 APIs and sync APIs same as 2.4
[platform/core/convergence/service-adaptor.git] / include / service_adaptor_types.h
1 /*
2  * Service Adaptor
3  *
4  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Yongjin Kim <youth.kim@samsung.com>
7  *          Jinhyeong Ahn <jinh.ahn@samsung.com>
8  *          Jiwon Kim <jiwon177.kim@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 #ifndef __TIZEN_CONVERGENCE_SERVICE_ADAPTOR_TYPES_H__
25 #define __TIZEN_CONVERGENCE_SERVICE_ADAPTOR_TYPES_H__
26
27 #include <stdio.h>
28 #include <glib.h>
29
30 #include "auth_adaptor.h"
31 #include "contact_adaptor.h"
32 #include "storage_adaptor.h"
33 #include "resource_adaptor.h"
34
35 typedef struct _service_adaptor_s
36 {
37         GList *svc_list;
38
39         auth_adaptor_h                  auth;
40         contact_adaptor_h               contact;
41         storage_adaptor_h               storage;
42         resource_adaptor_h              resource;
43
44         auth_adaptor_listener_h         auth_listener;
45         contact_adaptor_listener_h      contact_listener;
46         storage_adaptor_listener_h      storage_listener;
47         resource_adaptor_listener_h      resource_listener;
48
49         GMutex mutex;
50         GCond cond;
51         int start;
52 } service_adaptor_s;
53 typedef struct _service_adaptor_s *service_adaptor_h;
54
55 #endif /* __TIZEN_CONVERGENCE_SERVICE_ADAPTOR_TYPES_H__ */