Method

ValentContextget_data_file

unstable since: 1.0

Declaration [src]

GFile*
valent_context_get_data_file (
  ValentContext* context,
  const char* filename
)

Description [src]

Create a new data file.

This method creates a new GFile for filename in the data directory.

Available since: 1.0

Parameters

filename

Type: const char*

A filename.

The data is owned by the caller of the method.
The value is a file system path, using the OS encoding.

Return value

Type: GFile

A new GFile

The caller of the method takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.