util_get_dbus_item_result


Description:


public ClientItem? util_get_dbus_item_result (Variant variant)

Get an item out of the g_paste_item_variant_string Variant the daemon answers every single-item method with

A kind this library does not know -- a newer daemon's, met while an upgrade re-executes the daemon under a client still running the older library -- is read as text, its value shown as it arrived: stored as it came, it would be an enumeration value no binding can hand out, GJS throwing on g_paste_client_item_get_kind (). An item with no valid uuid, which GPaste's own daemon never sends, is no item at all.

Parameters:

variant

a Variant

Returns:

The item, or null for one with no valid uuid


Namespace: GPaste
Package: gpaste-3