OsinfoDevice

OsinfoDevice — A hardware device

Synopsis

#define             OSINFO_DEVICE_PROP_BUS_TYPE
#define             OSINFO_DEVICE_PROP_CLASS
#define             OSINFO_DEVICE_PROP_NAME
#define             OSINFO_DEVICE_PROP_PRODUCT
#define             OSINFO_DEVICE_PROP_VENDOR
struct              OsinfoDevice;
struct              OsinfoDeviceClass;
const gchar *       osinfo_device_get_bus_type          (OsinfoDevice *dev);
const gchar *       osinfo_device_get_class             (OsinfoDevice *dev);
const gchar *       osinfo_device_get_name              (OsinfoDevice *dev);
const gchar *       osinfo_device_get_product           (OsinfoDevice *dev);
const gchar *       osinfo_device_get_vendor            (OsinfoDevice *dev);
OsinfoDevice *      osinfo_device_new                   (const gchar *id);

Object Hierarchy

  GObject
   +----OsinfoEntity
         +----OsinfoDevice

Description

OsinfoDevice is an entity representing some kind of hardware device. Devices can be associated with operating systems and platforms.

Details

OSINFO_DEVICE_PROP_BUS_TYPE

#define OSINFO_DEVICE_PROP_BUS_TYPE "bus-type"

OSINFO_DEVICE_PROP_CLASS

#define OSINFO_DEVICE_PROP_CLASS    "class"

OSINFO_DEVICE_PROP_NAME

#define OSINFO_DEVICE_PROP_NAME     "name"

OSINFO_DEVICE_PROP_PRODUCT

#define OSINFO_DEVICE_PROP_PRODUCT  "product"

OSINFO_DEVICE_PROP_VENDOR

#define OSINFO_DEVICE_PROP_VENDOR   "vendor"

struct OsinfoDevice

struct OsinfoDevice;

struct OsinfoDeviceClass

struct OsinfoDeviceClass {
    OsinfoEntityClass parent_class;

    /* class members */
};

osinfo_device_get_bus_type ()

const gchar *       osinfo_device_get_bus_type          (OsinfoDevice *dev);

osinfo_device_get_class ()

const gchar *       osinfo_device_get_class             (OsinfoDevice *dev);

osinfo_device_get_name ()

const gchar *       osinfo_device_get_name              (OsinfoDevice *dev);

osinfo_device_get_product ()

const gchar *       osinfo_device_get_product           (OsinfoDevice *dev);

osinfo_device_get_vendor ()

const gchar *       osinfo_device_get_vendor            (OsinfoDevice *dev);

osinfo_device_new ()

OsinfoDevice *      osinfo_device_new                   (const gchar *id);

See Also

OsinfoOs, OsinfoPlatform