Function

Valentpacket_get_type

unstable since: 1.0

Declaration [src]

const char*
valent_packet_get_type (
  JsonNode* packet
)

Description [src]

Convenience function for getting the capability type of a KDE Connect packet.

Available since: 1.0

Parameters

packet

Type: JsonNode

A KDE Connect packet.

The data is owned by the caller of the function.

Return value

Type: const char*

A KDE Connect capability.

The data is owned by the called function.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.