Function

ValentDevicevalidate_name

unstable since: 1.0

Declaration [src]

gboolean
valent_device_validate_name (
  const char* name
)

Description [src]

Validate a KDE Connect device name.

A compliant device name is 1 to 32 characters in length and must not contain the characters "',;:.!?()[]<>.

Available since: 1.0

Parameters

name

Type: const char*

A KDE Connect device name.

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

Return value

Type: gboolean

TRUE if valid, or FALSE.