Function

Valentpacket_to_stream_async

unstable since: 1.0

Declaration [src]

void
valent_packet_to_stream_async (
  GOutputStream* stream,
  JsonNode* packet,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

A convenience function for writing a KDE Connect packet to an output stream.

Call valent_packet_to_stream_finish() to get the result.

Available since: 1.0

Parameters

stream

Type: GOutputStream

A GOutputStream.

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

Type: JsonNode

A KDE Connect packet.

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

Type: GCancellable

A GCancellable.

The argument can be NULL.
The data is owned by the caller of the function.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback.

The argument can be NULL.
user_data

Type: gpointer

User supplied data.

The argument can be NULL.
The data is owned by the caller of the function.