#include <HwProbe.h>
Inheritance diagram for HwProbe:
Public Member Functions | |
HwProbe () | |
~HwProbe () | |
YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optarg=YCPNull()) |
YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
YCPList | Dir (const YCPPath &path) |
Private Member Functions | |
YCPValue | hd2value (hd_t *hd) |
YCPList | hdlist2ycplist (hd_t *hd, hd_hw_item_t filteritem=(hd_hw_item_t) 0) |
YCPMap | resource_type2map (const res_any_t *res, const char **name) |
YCPMap | driver_info2map (const driver_info_t *drv, const char **name) |
YCPValue | byItem (hd_hw_item_t item, bool re_probe) |
YCPValue | filterManual (hd_hw_item_t item) |
YCPValue | bootArch () |
YCPValue | cpuArch () |
YCPValue | bootDisk () |
YCPValue | cdb_isdnData () |
YCPValue | biosVideo () |
YCPValue | vesaFramebuffer () |
YCPValue | checkPath (const YCPPath &path, const YCPValue &arg, const YCPValue &writeval, int func) |
int | doScan (int force) |
Private Attributes | |
hd_data_t * | hd_base |
HwProbe::HwProbe | ( | ) |
Creates a new HwProbe.
HwProbe::~HwProbe | ( | ) |
Cleans up
YCPValue HwProbe::byItem | ( | hd_hw_item_t | item, | |
bool | re_probe | |||
) | [private] |
lookup hardware components matching item return YCPValue
YCPValue HwProbe::checkPath | ( | const YCPPath & | path, | |
const YCPValue & | arg, | |||
const YCPValue & | writeval, | |||
int | func | |||
) | [private] |
check path for read, write, and dir func == 0 for read, == 1 for write, == 2 for dir.
Get a list of all subtrees.
Implements SCRAgent.
int HwProbe::doScan | ( | int | force | ) | [private] |
scan the hardware
YCPMap HwProbe::driver_info2map | ( | const driver_info_t * | drv, | |
const char ** | name | |||
) | [private] |
convert driver_info_t entry to map value
YCPValue HwProbe::filterManual | ( | hd_hw_item_t | item | ) | [private] |
lookup 'manual' (configured) hardware components matching item return YCPValue
YCPValue HwProbe::hd2value | ( | hd_t * | hd | ) | [private] |
convert hd_data_t entry to value
YCPList HwProbe::hdlist2ycplist | ( | hd_t * | hd, | |
hd_hw_item_t | filteritem = (hd_hw_item_t) 0 | |||
) | [private] |
convert a hd_data_t linked list to a ycplist
YCPValue HwProbe::Read | ( | const YCPPath & | path, | |
const YCPValue & | arg = YCPNull() , |
|||
const YCPValue & | optarg = YCPNull() | |||
) | [virtual] |
Reads data. Destroy the result after use.
path | Specifies what part of the subtree should be read. The path is specified _relatively_ to Root()! |
Implements SCRAgent.
YCPMap HwProbe::resource_type2map | ( | const res_any_t * | res, | |
const char ** | name | |||
) | [private] |
convert res_t entry to map value
YCPBoolean HwProbe::Write | ( | const YCPPath & | path, | |
const YCPValue & | value, | |||
const YCPValue & | arg = YCPNull() | |||
) | [virtual] |
Writes data. Destroy the result after use.
Implements SCRAgent.
hd_data_t* HwProbe::hd_base [private] |
pointer to complete hd structure