Method

GrlRelatedKeysset_for_id

since: 0.3.13

Declaration [src]

gboolean
grl_related_keys_set_for_id (
  GrlRelatedKeys* relkeys,
  const gchar* key_name,
  const GValue* value
)

Description [src]

Sets the value associated with key_name in relkeys. This key_name is used to create a new GParamSpec instance, which is further used to create and register a key using grl_registry_register_metadata_key(). If key_name already has a value, old value is replaced by the new one.

A property key_name consists of segments consisting of ASCII letters and digits, separated by either the ‘-‘ or ‘_’ character. The first character of a property key_name must be a letter. Key_names which violate these rules lead to undefined behaviour.

Available since: 0.3.13

Parameters

key_name

Type: const gchar*

Name of the key to change or add.

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

Type: GValue

The new value.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if value was set to key_name, FALSE otherwise.