OsinfoDevice

## OsinfoDevice OsinfoDevice — A hardware device |

## Synopsis

    #define             OSINFO_DEVICE_PROP_VENDOR
    #define             OSINFO_DEVICE_PROP_VENDOR_ID
    #define             OSINFO_DEVICE_PROP_PRODUCT
    #define             OSINFO_DEVICE_PROP_PRODUCT_ID
    #define             OSINFO_DEVICE_PROP_NAME
    #define             OSINFO_DEVICE_PROP_CLASS
    #define             OSINFO_DEVICE_PROP_BUS_TYPE
    #define             OSINFO_DEVICE_PROP_SUBSYSTEM
    struct              OsinfoDevice;
    struct              OsinfoDeviceClass;
    OsinfoDevice *      osinfo_device_new                   (const gchar *id);
    const gchar *       osinfo_device_get_vendor            (OsinfoDevice *dev);
    const gchar *       osinfo_device_get_vendor_id         (OsinfoDevice *dev);
    const gchar *       osinfo_device_get_product           (OsinfoDevice *dev);
    const gchar *       osinfo_device_get_product_id        (OsinfoDevice *dev);
    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_subsystem         (OsinfoDevice *dev);

## 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_VENDOR

    #define OSINFO_DEVICE_PROP_VENDOR     "vendor"

### OSINFO_DEVICE_PROP_VENDOR_ID

    #define OSINFO_DEVICE_PROP_VENDOR_ID  "vendor-id"

### OSINFO_DEVICE_PROP_PRODUCT

    #define OSINFO_DEVICE_PROP_PRODUCT    "product"

### OSINFO_DEVICE_PROP_PRODUCT_ID

    #define OSINFO_DEVICE_PROP_PRODUCT_ID "product-id"

### OSINFO_DEVICE_PROP_NAME

    #define OSINFO_DEVICE_PROP_NAME       "name"

### OSINFO_DEVICE_PROP_CLASS

    #define OSINFO_DEVICE_PROP_CLASS      "class"

### OSINFO_DEVICE_PROP_BUS_TYPE

    #define OSINFO_DEVICE_PROP_BUS_TYPE   "bus-type"

### OSINFO_DEVICE_PROP_SUBSYSTEM

    #define OSINFO_DEVICE_PROP_SUBSYSTEM  "subsystem"

### struct OsinfoDevice

    struct OsinfoDevice;

### struct OsinfoDeviceClass

    struct OsinfoDeviceClass {
    };

### osinfo_device_new ()

    OsinfoDevice *      osinfo_device_new                   (const gchar *id);

### osinfo_device_get_vendor ()

    const gchar *       osinfo_device_get_vendor            (OsinfoDevice *dev);

### osinfo_device_get_vendor_id ()

    const gchar *       osinfo_device_get_vendor_id         (OsinfoDevice *dev);

### osinfo_device_get_product ()

    const gchar *       osinfo_device_get_product           (OsinfoDevice *dev);

### osinfo_device_get_product_id ()

    const gchar *       osinfo_device_get_product_id        (OsinfoDevice *dev);

### 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_subsystem ()

    const gchar *       osinfo_device_get_subsystem         (OsinfoDevice *dev);

## See Also

OsinfoOs, OsinfoPlatform