Method

PanelSessionItemget_metadata

Declaration [src]

gboolean
panel_session_item_get_metadata (
  PanelSessionItem* self,
  const char* key,
  const char* format,
  ...
)

Description [src]

Extract a metadata value matching format.

format must not reference the GVariant, which means you need to make copies of data, such as “s” instead of “&s”.

This method is not directly available to language bindings.

Parameters

key const char*
 

The key for the metadata value.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
format const char*
 

The format of the value.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
...
  No description available.

Return value

Returns: gboolean
 

TRUE if key was found with format and parameters were set.