/
hw_feature.h
44 lines (38 loc) · 1.39 KB
/
hw_feature.h
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
/** @file hw_feature.h
*
* ssu-sysinfo - HW feature functions
* <p>
* Copyright (c) 2017 Jolla Ltd.
* <p>
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* ssu-sysinfo is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* ssu-sysinfo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ssu-sysinfo; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef HW_FEATURE_H_
# define HW_FEATURE_H_
# include "ssusysinfo.h"
# ifdef __cplusplus
extern "C" {
# endif
bool hw_feature_is_valid (hw_feature_t id);
bool hw_feature_get_fallback (hw_feature_t id);
const char *hw_feature_to_string (hw_feature_t id);
hw_feature_t hw_feature_from_string (const char *name);
const char *hw_feature_to_csd_key (hw_feature_t id);
const char **hw_feature_names (void);
# ifdef __cplusplus
};
# endif
#endif /* HW_FEATURE_H_ */