Constructor

ValentDevicenew

unstable since: 1.0

Declaration [src]

ValentDevice*
valent_device_new (
  const char* id
)

Description [src]

Create a new device for id.

Available since: 1.0

Parameters

id

Type: const char*

A device ID.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: ValentDevice

A new ValentDevice.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.