Function
Valentpacket_end
unstable since: 1.0
Declaration [src]
JsonNode*
valent_packet_end (
JsonBuilder** builder
)
Description [src]
Finish a packet created with valent_packet_init()
.
This function closes the body
and root objects, then calls
json_builder_get_root()
. Then the reference count of builder
is
decreased and the pointer is set to NULL
, before returning the packet.
Available since: 1.0
This function is not directly available to language bindings.
Parameters
builder
-
Type:
JsonBuilder
A pointer to a
JsonBuilder
.The data is owned by the caller of the function.
Return value
Type: JsonNode
A KDE Connect packet.
The caller of the function takes ownership of the data, and is responsible for freeing it. |
The return value can be NULL . |