616dc63fa355786fdfa5913da35dbcb5d5d341a3
[platform/core/convergence/service-adaptor.git] / adaptor / auth-adaptor / auth_adaptor.h
1 /*
2  * Auth Adaptor
3  *
4  * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __AUTH_ADAPTOR_H__
21 #define __AUTH_ADAPTOR_H__
22
23 #ifndef API
24 #define API __attribute__ ((visibility("default")))
25 #endif
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
32 #include <stdio.h>
33 #include "service_adaptor_errors.h"
34
35 /**
36  * @file auth_adaptor.h
37  */
38
39 /**
40  * @ingroup
41  * @defgroup
42  *
43  * @brief
44  *
45  * @section
46  *  \#include <auth_adaptor.h>
47  *
48  * <BR>
49  * @{
50  */
51
52 typedef struct _auth_adaptor_s
53 {
54         int i;
55 } auth_adaptor_s;
56 typedef struct auth_adaptor_s *auth_adaptor_h;
57
58 typedef struct _auth_adaptor_listener_s
59 {
60         int i;
61 } auth_adaptor_listener_s;
62 typedef struct auth_adaptor_listener_s *auth_adaptor_listener_h;
63
64 API auth_adaptor_h auth_adaptor_create();
65 API service_adaptor_error_e auth_adaptor_destroy(auth_adaptor_h auth);
66 API service_adaptor_error_e auth_adaptor_start(auth_adaptor_h auth);
67 API service_adaptor_error_e auth_adaptor_stop(auth_adaptor_h auth);
68 API service_adaptor_error_e auth_adaptor_register_listener(auth_adaptor_h auth, auth_adaptor_listener_h listener);
69 API service_adaptor_error_e auth_adaptor_unregister_listener(auth_adaptor_h auth, auth_adaptor_listener_h listener);
70
71 /**
72  * @}
73  */
74
75 #ifdef __cplusplus
76 }
77 #endif
78
79 #endif /* __AUTH_ADAPTOR_H__ */