Function
Valentpacket_check_field
unstable since: 1.0
Declaration [src]
gboolean
valent_packet_check_field (
JsonNode* packet,
const char* field
)
Description [src]
Check packet for field and return TRUE if present, with two exceptions:
- If
fieldis aG_TYPE_BOOLEAN, its value is returned - If
fieldis aG_TYPE_STRING,FALSEis returned if the string is empty.
Available since: 1.0
Parameters
packet-
Type:
JsonNodeA 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.