Function
Valentpacket_new
unstable since: 1.0
Declaration [src]
JsonNode*
valent_packet_new (
const char* type
)
Description [src]
A convenience function for creating a new KDE Connect packet with the type
field set to type
.
Available since: 1.0
Parameters
type
-
Type:
const char*
A KDE Connect packet type.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: JsonNode
A KDE Connect packet.
The caller of the function takes ownership of the data, and is responsible for freeing it. |