Method

FoundryIntentdup_attribute_object

unstable since: 1.1

Declaration [src]

gpointer
foundry_intent_dup_attribute_object (
  FoundryIntent* self,
  const char* attribute
)

Description [src]

Gets the attribute value as a GObject. The returned object is owned by the intent and should not be unref’d.

Available since: 1.1

Parameters

attribute

Type: const char*

The attribute name.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gpointer

The GObject, or NULL if not found or not an object.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.