summaryrefslogtreecommitdiff
path: root/src/lib/install/include/adaptor/adaptor_api.h
blob: 6a67da99a832fe9214f9518fe98c103f12b445ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
 * @file        adaptor_api.h
 * @brief       library for providing adaptor API

 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
 * This software is the confidential and proprietary information
 * of Samsung Electronics, Inc. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Samsung.
 */

#ifndef __ADAPTOR_API_H__
#define __ADAPTOR_API_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "adaptor_api_types.h"

#ifndef API
#define API __attribute__ ((visibility("default")))
#endif

/**
 * @fn        int device_reboot(void)
 * @brief     this function to reboot target device
 * @param     void
 * @return    int 			return of function
 */
API int device_reboot(void);

/**
 * @fn        int get_os_info(void)
 * @brief     this function to get os information
 * @param     *os_info		[out] fill os information
 * @return    int 			return of function
 */
API int get_os_info(os_info_s * os_info);

/**
 * @fn        int device_reboot(void)
 * @brief     this function to get disk information
 * @param     *disk_info		[out] fill disk information
 * @return    int 			return of function
 */
API int get_disk_info(disk_info_s * disk_info);

/**
 * @fn        int factory_restore(void)
 * @brief     this function to restore factory state
 * @param     void
 * @return    int 			return of function
 */
API int factory_restore();

#ifdef __cplusplus
}
#endif

#endif /* __ADAPTOR_API_H__ */