mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Initial version of GResource
GResource is a bundle of files combined into a single binary blog. The API lets you access the files the resource contains by using resource paths. You can also register resources with a global list and access these globally in a merged resource namespace. The normal way this is used is to link in the resources into your application/library and have it be automatically registred. Resources are compiled from an xml description using glib-compile-resources.
This commit is contained in:
@@ -630,6 +630,44 @@ typedef enum {
|
||||
G_RESOLVER_ERROR_INTERNAL
|
||||
} GResolverError;
|
||||
|
||||
/**
|
||||
* GResourceError:
|
||||
* @G_RESOURCE_ERROR_NOT_FOUND: no file was found at the requested path
|
||||
* @G_RESOURCE_ERROR_INTERNAL: unknown error
|
||||
*
|
||||
* An error code used with %G_RESOURCE_ERROR in a #GError returned
|
||||
* from a #GResource routine.
|
||||
*
|
||||
* Since: 2.32
|
||||
*/
|
||||
typedef enum {
|
||||
G_RESOURCE_ERROR_NOT_FOUND,
|
||||
G_RESOURCE_ERROR_INTERNAL
|
||||
} GResourceError;
|
||||
|
||||
/**
|
||||
* GResourceFlags:
|
||||
* @G_RESOURCE_FLAGS_NONE: No flags set.
|
||||
* @G_RESOURCE_FLAGS_COMPRESSED: The file is compressed.
|
||||
*
|
||||
* GResourceFlags give information about a particular file inside a resource
|
||||
* bundle.
|
||||
**/
|
||||
typedef enum {
|
||||
G_RESOURCE_FLAGS_NONE = 0,
|
||||
G_RESOURCE_FLAGS_COMPRESSED = (1<<0)
|
||||
} GResourceFlags;
|
||||
|
||||
/**
|
||||
* GResourceLookupFlags:
|
||||
* @G_RESOURCE_LOOKUP_FLAGS_NONE: No flags set.
|
||||
*
|
||||
* GResourceLookupFlags determine how resource path lookups are handled.
|
||||
**/
|
||||
typedef enum {
|
||||
G_RESOURCE_LOOKUP_FLAGS_NONE = 0,
|
||||
} GResourceLookupFlags;
|
||||
|
||||
/**
|
||||
* GSocketFamily:
|
||||
* @G_SOCKET_FAMILY_INVALID: no address family
|
||||
|
Reference in New Issue
Block a user