#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "HwProbe.h"
#include <hd.h>
#include <scr/SCRAgent.h>
#include "Y2.h"
#include <ycp/y2log.h>
Defines | |
#define | RES2TYPE(t) t *r = (t *)res |
#define | DRV2TYPE(t) t *d = (t *)drvinfo |
Functions | |
static const char * | cpu2string (hd_cpu_arch_t cpu_arch) |
static const char * | boot2string (hd_boot_arch_t boot_arch) |
static const char * | hotplug2string (hd_hotplug_t hotplug) |
static YCPString | access2string (unsigned int acc) |
static YCPMap | devnum2map (hd_dev_num_t devnum) |
static void | add_devnum (const hd_dev_num_t *devnum, YCPMap *m, const char *k) |
static void | add_str (const char *str, YCPMap *m, const char *k) |
static void | add_strlist (const str_list_t *strlist, YCPMap *m, const char *k) |
static void | strlist2ycplist (const str_list_t *strlist, YCPMap *map, const char *key) |
YCPList | String2List (const char *sl) |
#define DRV2TYPE | ( | t | ) | t *d = (t *)drvinfo |
Referenced by HwProbe::driver_info2map().
#define RES2TYPE | ( | t | ) | t *r = (t *)res |
Referenced by HwProbe::resource_type2map().
static YCPString access2string | ( | unsigned int | acc | ) | [static] |
Referenced by HwProbe::resource_type2map().
static void add_devnum | ( | const hd_dev_num_t * | devnum, | |
YCPMap * | m, | |||
const char * | k | |||
) | [static] |
Add the hd_dev_num_t devnum to the YCPMap m with key k if devnum and it's type is non-zero.
References YCPMap::add(), and devnum2map().
Referenced by HwProbe::hd2value().
static void add_str | ( | const char * | str, | |
YCPMap * | m, | |||
const char * | k | |||
) | [static] |
Add the char* str to the YCPMap m with key k if str in non-zero.
References YCPMap::add().
Referenced by HwProbe::hd2value().
static void add_strlist | ( | const str_list_t * | strlist, | |
YCPMap * | m, | |||
const char * | k | |||
) | [static] |
Add the str_list_t* strlist to the YCPMap m with key k if strlist is non-zero.
References YCPMap::add(), and YCPList::add().
Referenced by HwProbe::hd2value(), and HwProbe::resource_type2map().
static const char* boot2string | ( | hd_boot_arch_t | boot_arch | ) | [static] |
Referenced by HwProbe::bootArch().
static const char* cpu2string | ( | hd_cpu_arch_t | cpu_arch | ) | [static] |
Purpose: ycp to libhd interface, parse hd_t and construct YCPValueRep
Authors: Klaus Kaempf <kkaempf@suse.de> Arvin Schnell <arvin@suse.de> Maintainer: Arvin Schnell <arvin@suse.de>
Referenced by HwProbe::cpuArch(), and HwProbe::hd2value().
static YCPMap devnum2map | ( | hd_dev_num_t | devnum | ) | [static] |
static const char* hotplug2string | ( | hd_hotplug_t | hotplug | ) | [static] |
Referenced by HwProbe::hd2value().
YCPList String2List | ( | const char * | sl | ) |
References YCPList::add(), and str.
Referenced by HwProbe::cdb_isdnData().
static void strlist2ycplist | ( | const str_list_t * | strlist, | |
YCPMap * | map, | |||
const char * | key | |||
) | [static] |
Adds an entry to the map containing the key as key and the strlist and value. Does nothing if strlist is 0.
References YCPList::add().
Referenced by HwProbe::driver_info2map(), and HwProbe::hd2value().