![]() |
![]() |
![]() |
Libosinfo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define OSINFO_DEVICELINK_PROP_DRIVER struct OsinfoDeviceLink; struct OsinfoDeviceLinkClass; const gchar * osinfo_devicelink_get_driver (OsinfoDeviceLink *link
); OsinfoDevice * osinfo_devicelink_get_target (OsinfoDeviceLink *link
); OsinfoDeviceLink * osinfo_devicelink_new (OsinfoDevice *target
);
OsinfoDeviceLink is an entity representing some kind of hardware devicelink. DeviceLinks can be associated with operating systems and platforms.
struct OsinfoDeviceLinkClass { OsinfoEntityClass parent_class; /* class members */ };
const gchar * osinfo_devicelink_get_driver (OsinfoDeviceLink *link
);
OsinfoDevice * osinfo_devicelink_get_target (OsinfoDeviceLink *link
);
Retrieve the OsinfoDevice that the link points to.
|
the device link |
Returns : |
the target of the device link. [transfer none] |
OsinfoDeviceLink * osinfo_devicelink_new (OsinfoDevice *target
);
Construct a new link to a OsinfoDevice. The unique ID of the link is set to match the ID of the target device.
|
the target device |
Returns : |
the new device link. [transfer full] |
"target"
property"target" OsinfoDevice* : Read / Write / Construct Only
The target of the device link.