Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | devd_device_get_id () |
DevdClient * | devd_device_create_client () |
const gchar * | devd_device_get_icon_name () |
void | devd_device_set_icon_name () |
DevdDeviceKind | devd_device_get_kind () |
void | devd_device_set_kind () |
const gchar * | devd_device_get_machine_id () |
void | devd_device_set_machine_id () |
const gchar * | devd_device_get_name () |
void | devd_device_set_name () |
char * | icon-name | Read / Write |
char * | id | Read / Write / Construct Only |
DevdDeviceKind | kind | Read / Write |
char * | machine-id | Read / Write |
char * | name | Read / Write |
const gchar *
devd_device_get_id (DevdDevice *self
);
Gets the identifier for the device.
Since: 3.28
DevdClient *
devd_device_create_client (DevdDevice *self
);
Creates a new DevdClient that can be used to connect to the device in question.
Not all devices are guaranteed to support multiple connections. For example, a USB device connection over serial may require exclusive access to the serial port and therefore, fail to connect if you try to use multiple client simultaneously.
See devd_client_connect_async()
to establish a connection.
Since: 3.28
const gchar *
devd_device_get_icon_name (DevdDevice *self
);
Gets the “icon-name” property.
Since: 3.28
void devd_device_set_icon_name (DevdDevice *self
,const gchar *icon_name
);
This set the icon-name for the local DevdDevice instance. It does not
change the icon on the remove device. To interact with the remove device
use devd_device_create_client()
.
Since: 3.28
const gchar *
devd_device_get_machine_id (DevdDevice *self
);
Gets the machine-id property, if specified
Since: 3.28
void devd_device_set_machine_id (DevdDevice *self
,const gchar *machine_id
);
Sets the “machine-id” for the local object instance.
Since: 3.28
const gchar *
devd_device_get_name (DevdDevice *self
);
Gets the "name" property of the device, if there is one.
Since: 3.28
void devd_device_set_name (DevdDevice *self
,const gchar *name
);
Sets the name of the device.
This only changes the local representation of the device name. It does
not change the name on the remove device. To interact with the remote
device, use devd_device_create_client()
to create a DevdClient.
Since: 3.28
struct DevdDeviceClass { GObjectClass parent_class; DevdClient *(*create_client) (DevdDevice *self); };
“icon-name”
property “icon-name” char *
The icon-name for the device.
Owner: DevdDevice
Flags: Read / Write
Default value: NULL
“id”
property “id” char *
The identifier for the device.
Owner: DevdDevice
Flags: Read / Write / Construct Only
Default value: NULL
“kind”
property“kind” DevdDeviceKind
The device kind.
Owner: DevdDevice
Flags: Read / Write
Default value: DEVD_DEVICE_KIND_COMPUTER
“machine-id”
property “machine-id” char *
The machine-id of the device.
Owner: DevdDevice
Flags: Read / Write
Default value: NULL