![]() |
![]() |
![]() |
Dee Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct DeeFileResourceManager; struct DeeFileResourceManagerClass; void dee_file_resource_manager_add_search_path (DeeResourceManager *self
,const gchar *path
); const gchar * dee_file_resource_manager_get_primary_path (DeeResourceManager *self
); DeeResourceManager * dee_file_resource_manager_new (const gchar *primary_path
);
This is an implementation of the DeeResourceManager interface. It uses atomic operations to write resources to files and memory maps the resource files when you load them.
Unless you have very specific circumstances you should normally not
create resource managers yourself, but get the default one for your
platform by calling dee_resource_manager_get_default()
.
struct DeeFileResourceManagerClass { GObjectClass parent_class; };
void dee_file_resource_manager_add_search_path (DeeResourceManager *self
,const gchar *path
);
Add a path to the set of paths searched for resources. The manager will first search the primary path as specified in the constructor and then search paths in the order they where added.
|
The resource manager to add a search path to. [type DeeFileResourceManager] |
|
The path to add to the set of searched paths |
const gchar * dee_file_resource_manager_get_primary_path
(DeeResourceManager *self
);
Helper method to access the :primary-path property.
|
The resource manager to inspect. [type DeeFileResourceManager] |
Returns : |
The value of the :primary-path property |
DeeResourceManager * dee_file_resource_manager_new (const gchar *primary_path
);
Create a new DeeFileResourceManager with its primary store- and load
path set to primary_path
.
You can manually add fallback search paths by calling
dee_file_resource_manager_add_search_path()
.
You normally don't need to create you own resource managers. Instead
you should call dee_resource_manager_get_default()
.
|
The primary path used to store and load resources.
If you pass NULL the manager will use a default path. |
Returns : |
A newly allocated DeeFileResourceManager.
Free with g_object_unref() . [transfer full][type DeeFileResourceManager]
|
"primary-path"
property"primary-path" gchar* : Read / Write / Construct Only
Property holding the primary path used to store and load resources
Default value: NULL