Function

Valentpacket_set_payload_full

unstable since: 1.0

Declaration [src]

void
valent_packet_set_payload_full (
  JsonNode* packet,
  JsonObject* info,
  goffset size
)

Description [src]

A convenience method for setting the payloadTransferInfo and payloadSize fields on packet.

Available since: 1.0

Parameters

packet

Type: JsonNode

A KDE Connect packet.

The data is owned by the caller of the function.
info

Type: JsonObject

A JsonObject.

The called function takes ownership of the data, and is responsible for freeing it.
size

Type: goffset

The payload size in bytes.