#include <HwProbe.h>

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 | readByUniqueID (const YCPValue &arg) |
| 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 |
Purpose: class definition for HwProbe
Authors: Klaus Kaempf <kkaempf@suse.de> Arvin Schnell <arvin@suse.de> Maintainer: Arvin Schnell <arvin@suse.de>
| HwProbe::HwProbe | ( | ) |
Creates a new HwProbe.
| HwProbe::~HwProbe | ( | ) |
Cleans up
| 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()! |
read value from relative path
Implements SCRAgent.
| YCPBoolean HwProbe::Write | ( | const YCPPath & | path, | |
| const YCPValue & | value, | |||
| const YCPValue & | arg = YCPNull() | |||
| ) | [virtual] |
Writes data. Destroy the result after use.
Implements SCRAgent.
| 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
| YCPMap HwProbe::resource_type2map | ( | const res_any_t * | res, | |
| const char ** | name | |||
| ) | [private] |
convert res_t entry to map value
| YCPMap HwProbe::driver_info2map | ( | const driver_info_t * | drvinfo, | |
| const char ** | name | |||
| ) | [private] |
convert driver_info_t entry to map value
| YCPValue HwProbe::byItem | ( | hd_hw_item_t | item, | |
| bool | re_probe | |||
| ) | [private] |
lookup hardware components matching item return YCPValue
lookup hardware components matching unique_id return YCPValue
| YCPValue HwProbe::filterManual | ( | hd_hw_item_t | item | ) | [private] |
lookup 'manual' (configured) 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.
checkPath check given path
| path | path to check | |
| func | == 0 for read, == 1 for write, == 2 for dir or return full value for sub-tree |
| int HwProbe::doScan | ( | int | force | ) | [private] |
scan the hardware
hd_data_t* HwProbe::hd_base [private] |
pointer to complete hd structure
1.5.3