5.15 GTypeValueInitFunc

Callback: GTypeValueInitFunc

A procedure given for it is called as (procedure value).

Initializes the value contents by setting the fields of the value->data array.

The data array of the <GValue> passed into this function was zero-filled with memset(), so no care has to be taken to free any old contents. For example, in the case of a string value that may never be #f, the implementation might look like:


value->data[0].v_pointer = g_strdup ("");
value

Passed: a <GValue>.

the value to initialize