Function
Valentpacket_dup_strv
unstable since: 1.0
Declaration [src]
GStrv
valent_packet_dup_strv (
JsonNode* packet,
const char* field
)
Description [src]
Lookup field
in the body of packet
and return a newly allocated list of strings.
If field
is not found, it is not a JsonArray
or any of its elements are not
strings, NULL
will be returned.
Available since: 1.0
Parameters
packet
-
Type:
JsonNode
A KDE Connect packet.
The data is owned by the caller of the function. field
-
Type:
const char*
Field name.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.