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;
95 void (*addResourcePath)(
const char *path);
116 Resource *(*initWithBytes)(
Resource *self,
const uint8_t *bytes,
size_t length,
const char *name);
147 void (*removeResourcePath)(
const char *path);
166 Resource *(*resourceWithName)(
const char *name);
Data *(* ResourceProvider)(const char *name)
Applications may specify a provider function for loading via file system abstractions.
OBJECTIVELY_EXPORT Class * _Resource(void)
#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.
char * name
The resource name.