HwProbe Class Reference

SCR Agent for access to hardware autoprobe. More...

#include <HwProbe.h>

Inheritance diagram for HwProbe:

SCRAgent List of all members.

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

Detailed Description

SCR Agent for access to hardware autoprobe.


Constructor & Destructor Documentation

HwProbe::HwProbe  ) 
 

Creates a new HwProbe.

HwProbe::~HwProbe  ) 
 

Cleans up


Member Function Documentation

YCPValue HwProbe::biosVideo  )  [private]
 

lookup which video card is used by bios return YCPValue

YCPValue HwProbe::bootArch  )  [private]
 

lookup boot architecture return YCPValue

YCPValue HwProbe::bootDisk  )  [private]
 

lookup boot disk return YCPValue

YCPValue HwProbe::byItem hd_hw_item_t  item,
bool  re_probe
[private]
 

lookup hardware components matching item return YCPValue

YCPValue HwProbe::cdb_isdnData  )  [private]
 

lookup isdn hardware data 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.

YCPValue HwProbe::cpuArch  )  [private]
 

lookup cpu architecture return YCPValue

YCPList HwProbe::Dir const YCPPath path  )  [virtual]
 

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.

Parameters:
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

YCPValue HwProbe::vesaFramebuffer  )  [private]
 

finds out framebuffer data return YCPValue

YCPBoolean HwProbe::Write const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull()
[virtual]
 

Writes data. Destroy the result after use.

Implements SCRAgent.


Member Data Documentation

hd_data_t* HwProbe::hd_base [private]
 

pointer to complete hd structure


The documentation for this class was generated from the following files:
Generated on Tue Apr 24 13:35:25 2012 for yast2-hardware-detection by  doxygen 1.4.6