Method

ValentContextget_cache_file

unstable since: 1.0

Declaration [src]

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

Description [src]

Create a new cache file.

This method creates a new GFile for filename in the cache 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 platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.

Return value

Type: GFile

A new GFile.

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