Constructor

AdwValueObjectnew_take_string

Declaration [src]

AdwValueObject*
adw_value_object_new_take_string (
  char* string
)

Description [src]

Creates a new AdwValueObject from a string.

This is a convenience method to create a AdwValueObject that stores a string taking ownership of it.

Available since:1.0

Parameters

string char*
 

The string to store.

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

Return value

Returns: AdwValueObject
 

The newly created AdwValueObject

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