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 payloadSize field is present, but not a G_TYPE_INT64
  • The payloadTransferInfo field is missing from the root object
  • The payloadTransferInfo field is not a JSON_NODE_OBJECT.

Available since: 1.0

Parameters

packet

Type: JsonNode

A KDE Connect packet.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if packet has a payload.