| urfkill Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <urfkill.h>
UrfDevice;
UrfDeviceClass;
UrfDevice * urf_device_new (void);
gboolean urf_device_set_object_path_sync (UrfDevice *device,
const char *object_path,
GCancellable *cancellable,
GError **error);
const char * urf_device_get_object_path (UrfDevice *device);
"hard" gboolean : Read "index" guint : Read "name" gchar* : Read "platform" gboolean : Read "soft" gboolean : Read / Write "type" guint : Read
typedef struct _UrfDevice UrfDevice;
The UrfDevice struct contains only private fields and should not be directly accessed.
UrfDevice * urf_device_new (void);
Creates a new UrfDevice object.
Returns : |
a new UrfDevice object. |
Since 0.2.0
gboolean urf_device_set_object_path_sync (UrfDevice *device,const char *object_path,GCancellable *cancellable,GError **error);
Set the object path of the object and fill up the intial properties.
|
a UrfDevice instance |
|
the UrfDevice object path |
|
a GCancellable or NULL
|
|
a GError, or NULL
|
Returns : |
TRUE for success, else FALSE and error is used
|
Since 0.2.0
"hard" property"hard" gboolean : Read
This property indicates whether the hard block of the rfkill device is on or not.
Default value: FALSE
Since 0.2.0
"index" property"index" guint : Read
The index of the rfkill device assigned by the kernel rfkill subsystem
Default value: 0
Since 0.2.0
"name" property"name" gchar* : Read
The name of the rfkill device defined by the driver
Default value: NULL
Since 0.2.0
"platform" property"platform" gboolean : Read
This property indicates whether the rfkill device is generated by a platform driver or not.
Default value: FALSE
Since 0.3.0
"soft" property"soft" gboolean : Read / Write
This property indicates whether the soft block of the rfkill device is on or not.
Default value: FALSE
Since 0.3.0
"type" property"type" guint : Read
The type of the rfkill device. See UrfSwitchType.
Allowed values: <= 7
Default value: 0
Since 0.2.0