Function

Gioresources_get_info

Declaration [src]

gboolean
g_resources_get_info (
  const char* path,
  GResourceLookupFlags lookup_flags,
  gsize* size,
  guint32* flags,
  GError** error
)

Description [src]

Looks for a file at the specified path in the set of globally registered resources and if found returns information about it.

lookup_flags controls the behaviour of the lookup.

Available since:2.32

Parameters

path const char*
 

A pathname inside the resource.

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

A GResourceLookupFlags.

size gsize*
 

A location to place the length of the contents of the file, or NULL if the length is not needed.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
flags guint32*
 

A location to place the GResourceFlags about the file, or NULL if the flags are not needed.

 The argument will be set by the function.
 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE if the file was found. FALSE if there were errors.