OsinfoDeviceLink

## OsinfoDeviceLink OsinfoDeviceLink — A hardware devicelink |

## Synopsis

    #define             OSINFO_DEVICELINK_PROP_DRIVER
    struct              OsinfoDeviceLink;
    struct              OsinfoDeviceLinkClass;
    OsinfoDeviceLink *  osinfo_devicelink_new               (OsinfoDevice *target);
    OsinfoDevice *      osinfo_devicelink_get_target        (OsinfoDeviceLink *link);
    const gchar *       osinfo_devicelink_get_driver        (OsinfoDeviceLink *link);

## Object Hierarchy

      GObject
       +----OsinfoEntity
             +----OsinfoDeviceLink

## Properties

      "target"                   OsinfoDevice*         : Read / Write / Construct Only

## Description

OsinfoDeviceLink is an entity representing some kind of hardware devicelink. DeviceLinks can be associated with operating systems and platforms.

## Details

### OSINFO_DEVICELINK_PROP_DRIVER

    #define OSINFO_DEVICELINK_PROP_DRIVER   "driver"

### struct OsinfoDeviceLink

    struct OsinfoDeviceLink;

### struct OsinfoDeviceLinkClass

    struct OsinfoDeviceLinkClass {
    };

### osinfo_devicelink_new ()

    OsinfoDeviceLink *  osinfo_devicelink_new               (OsinfoDevice *target);

Construct a new link for an OsinfoDevice. The unique ID of the link is set to match the ID of the target device.

`target` : | the target device
Returns : | the new device link. [transfer full]

### osinfo_devicelink_get_target ()

    OsinfoDevice *      osinfo_devicelink_get_target        (OsinfoDeviceLink *link);

Retrieve the OsinfoDevice that the link points to.

`link` : | the device link
Returns : | the target of the device link. [transfer none]

### osinfo_devicelink_get_driver ()

    const gchar *       osinfo_devicelink_get_driver        (OsinfoDeviceLink *link);

## Property Details

### The `"target"` property

      "target"                   OsinfoDevice*         : Read / Write / Construct Only

The target of the device link.

## See Also

OsinfoOs, OsinfoPlatform