Function

PurpleStatusAttributenew

Declaration [src]

PurpleStatusAttribute*
purple_status_attribute_new (
  const char* id,
  const char* name,
  GValue* value_type
)

Description [src]

Creates a new status attribute.

Parameters

id const char*
 

The ID of the attribute.

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

The name presented to the user.

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

The type of data contained in the attribute.

 The data is owned by the caller of the function.

Return value

Returns: PurpleStatusAttribute
 

A new status attribute.

 The caller of the function takes ownership of the data, and is responsible for freeing it.