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 __STORAGE_ADAPTOR_H__
21 #define __STORAGE_ADAPTOR_H__
24 #define API __attribute__ ((visibility("default")))
33 #include "service_adaptor_errors.h"
36 * @file storage_adaptor.h
46 * \#include <storage_adaptor.h>
52 typedef struct _storage_adaptor_s
56 typedef struct _storage_adaptor_s *storage_adaptor_h;
58 typedef struct _storage_adaptor_listener_s
61 } storage_adaptor_listener_s;
62 typedef struct _storage_adaptor_listener_s *storage_adaptor_listener_h;
64 API storage_adaptor_h storage_adaptor_create();
65 API service_adaptor_error_e storage_adaptor_destroy(storage_adaptor_h storage);
66 API service_adaptor_error_e storage_adaptor_start(storage_adaptor_h storage);
67 API service_adaptor_error_e storage_adaptor_stop(storage_adaptor_h storage);
68 API service_adaptor_error_e storage_adaptor_register_listener(storage_adaptor_h storage, storage_adaptor_listener_h listener);
69 API service_adaptor_error_e storage_adaptor_unregister_listener(storage_adaptor_h storage, storage_adaptor_listener_h listener);
79 #endif /* __STORAGE_ADAPTOR_H__ */