UrfDevice

UrfDevice — Client object for accessing information about rfkill devices

Functions

Types and Values

struct UrfDevice
struct UrfDeviceClass

Includes

#include <urfkill.h>

Description

A helper GObject for accessing rfkill devices

Functions

urf_device_get_object_path ()

const char *
urf_device_get_object_path (UrfDevice *device);

Get the object path for the device.

Parameters

device

a UrfDevice instance

 

Returns

the object path, or NULL

Since: 0.2.0


urf_device_new ()

UrfDevice *
urf_device_new (void);

Creates a new UrfDevice object.

Returns

a new UrfDevice object.

Since: 0.2.0


urf_device_set_object_path_sync ()

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 initial properties.

Parameters

device

a UrfDevice instance

 

object_path

the UrfDevice object path

 

cancellable

a GCancellable or NULL

 

error

a GError, or NULL

 

Returns

TRUE for success, else FALSE and error is used

Since: 0.2.0

Types and Values

struct UrfDevice

struct UrfDevice {
};

The UrfDevice struct contains only private fields and should not be directly accessed.


struct UrfDeviceClass

struct UrfDeviceClass {
};

Class structure for UrfDevice

See Also

UrfClient