get_integer_list


Description:

public int[] get_integer_list (string group_name, string key) throws KeyFileError

Returns the values associated with key under group_name as integers.

If key cannot be found then null is returned and throws is set to KEY_NOT_FOUND. Likewise, if the values associated with key cannot be interpreted as integers then null is returned and throws is set to INVALID_VALUE.

Parameters:

this

a KeyFile

group_name

a group name

key

a key

length

the number of integers returned

Returns:

the values associated with the key as a list of integers, or null if the key was not found or could not be parsed. The returned list of integers should be freed with g_free when no longer needed.