yast2-hardware-detection
Main Page
Classes
Files
Examples
File List
File Members
src
HwProbe.h
Go to the documentation of this file.
1
13
// -*- c++ -*-
14
15
#ifndef HwProbe_h
16
#define HwProbe_h
17
18
#include <stdio.h>
19
#include <sys/types.h>
20
21
#include <hd.h>
// libhd
22
23
#include <
scr/SCRAgent.h
>
24
25
#include "
Y2.h
"
26
30
class
HwProbe
:
public
SCRAgent
31
{
32
public
:
33
enum
hwinfo_settings
{
no_settings
=0,
list_md
};
34
38
HwProbe
();
39
43
~HwProbe
();
44
50
YCPValue
Read
(
const
YCPPath
& path,
const
YCPValue
& arg =
YCPNull
(),
const
YCPValue
& optarg =
YCPNull
());
51
55
YCPBoolean
Write
(
const
YCPPath
& path,
const
YCPValue
& value,
const
YCPValue
& arg =
YCPNull
());
56
60
YCPList
Dir
(
const
YCPPath
& path);
61
62
// ----------------------------------------
63
64
private
:
69
hd_data_t *
hd_base
;
70
74
YCPValue
hd2value
(hd_t *hd);
75
79
YCPList
hdlist2ycplist
(hd_t *hd, hd_hw_item_t filteritem = (hd_hw_item_t)0);
80
84
YCPMap
resource_type2map
(
const
res_any_t *res,
const
char
**name);
85
89
YCPMap
driver_info2map
(
const
driver_info_t *drv,
const
char
**name);
90
95
YCPValue
byItem
(hd_hw_item_t item,
enum
hwinfo_settings
);
96
101
YCPValue
readByUniqueID
(
const
YCPValue
& arg);
102
107
YCPValue
filterManual
(hd_hw_item_t item);
108
113
YCPValue
bootArch
();
114
119
YCPValue
cpuArch
();
120
125
YCPValue
bootDisk
();
126
131
YCPValue
cdb_isdnData
();
132
137
YCPValue
biosVideo
();
138
143
YCPValue
vesaFramebuffer
();
144
149
YCPValue
checkPath
(
const
YCPPath
& path,
const
YCPValue
& arg,
const
YCPValue
& writeval,
int
func);
150
154
int
doScan
(
int
force);
155
};
156
157
158
// helper macros to hide hd_data_t internals
159
160
#define hd_data_first(hddata) (hddata->hd)
161
#define hd_next(hd) (hd->next)
162
163
#endif // HwProbe_h
Generated on a sunny day for yast2-hardware-detection by
1.8.1