29 #define PATH_DELIM ";"
30 #define PATH_SEPAR "\\"
32 #define PATH_DELIM ":"
33 #define PATH_SEPAR "/"
42typedef struct ResourceInterface ResourceInterface;
47typedef Data *(*ResourceProvider)(
const char *name);
80struct ResourceInterface {
85 ObjectInterface objectInterface;
116 Resource *(*initWithBytes)(
Resource *self,
const uint8_t *bytes,
size_t length,
const char *name);
166 Resource *(*resourceWithName)(
const char *name);
static MutableData * data(void)
static void removeResourcePath(const char *path)
static void removeResourceProvider(ResourceProvider provider)
static void addResourceProvider(ResourceProvider provider)
static void addResourcePath(const char *path)
Data *(* ResourceProvider)(const char *name)
Applications may specify a provider function for loading via file system abstractions.
#define OBJECTIVELY_EXPORT
The runtime representation of a Class.
Object is the root Class of The Objectively Class hierarchy.
Resources provide an abstraction for file and stream resources.
Object object
The superclass.
ResourceInterface * interface
The interface.
Data * data
The resource data.
Class * _Resource(void)
The Resource archetype.
char * name
The resource name.