Subversion Repositories Games.Carmageddon

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 pmbaty 1
#ifndef _RESOURCE_H_
2
#define _RESOURCE_H_
3
 
4
#include "brender/br_types.h"
5
 
6
void* ResToUser(resource_header* r);
7
 
8
resource_header* UserToRes(void* r);
9
 
10
void* BrResAllocate(void* vparent, br_size_t size, br_uint_8 res_class);
11
 
12
void BrResInternalFree(resource_header* res, br_boolean callback);
13
 
14
void BrResFree(void* vres);
15
 
16
void BrResAssert(void* vres);
17
 
18
void BrResFreeNoCallback(void* vres);
19
 
20
void* BrResAdd(void* vparent, void* vres);
21
 
22
void* BrResRemove(void* vres);
23
 
24
br_uint_8 BrResClass(void* vres);
25
 
26
br_boolean BrResIsChild(void* vparent, void* vchild);
27
 
28
br_uint_32 BrResSize(void* vres);
29
 
30
br_uint_32 ResSizeTotal(void* vres, br_uint_32* ptotal);
31
 
32
br_uint_32 BrResSizeTotal(void* vres);
33
 
34
br_uint_32 BrResChildEnum(void* vres, br_resenum_cbfn* callback, void* arg);
35
 
36
br_uint_32 BrResCheck(void* vres, int no_tag);
37
 
38
char* BrResStrDup(void* vparent, char* str);
39
 
40
void InternalResourceDump(resource_header* res, br_putline_cbfn* putline, void* arg, int level);
41
 
42
void BrResDump(void* vres, br_putline_cbfn* putline, void* arg);
43
 
44
char* BrResClassIdentifier(br_uint_8 res_class);
45
 
46
#endif