Function
Valentpacket_has_payload
unstable since: 1.0
Declaration [src]
gboolean
valent_packet_has_payload (
JsonNode* packet
)
Description [src]
Return TRUE if the packet holds valid transfer information. Payload
information is considered invalid in the following cases:
- The
payloadSizefield is present, but not aG_TYPE_INT64 - The
payloadTransferInfofield is missing from the root object - The
payloadTransferInfofield is not aJSON_NODE_OBJECT.
Available since: 1.0
Parameters
packet-
Type:
JsonNodeA KDE Connect packet.
The data is owned by the caller of the function.