4 * Copyright (c) 2014 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef __AUTH_ADAPTOR_H__
21 #define __AUTH_ADAPTOR_H__
24 #define API __attribute__ ((visibility("default")))
33 #include "service_adaptor_errors.h"
36 * @file auth_adaptor.h
46 * \#include <auth_adaptor.h>
52 typedef struct _auth_adaptor_s
56 typedef struct auth_adaptor_s *auth_adaptor_h;
58 typedef struct _auth_adaptor_listener_s
61 } auth_adaptor_listener_s;
62 typedef struct auth_adaptor_listener_s *auth_adaptor_listener_h;
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);
79 #endif /* __AUTH_ADAPTOR_H__ */