Make some declarations forward declartions, to prevent dependency hell in
upcoming changes. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3704 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -19,19 +19,22 @@
|
|||||||
#ifndef _INDEX_H
|
#ifndef _INDEX_H
|
||||||
#define _INDEX_H
|
#define _INDEX_H
|
||||||
|
|
||||||
|
typedef struct resource_handlers ResourceHandlers;
|
||||||
|
typedef struct resource_desc ResourceDesc;
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "libs/reslib.h"
|
#include "libs/reslib.h"
|
||||||
#include "libs/uio/charhashtable.h"
|
#include "libs/uio/charhashtable.h"
|
||||||
|
|
||||||
typedef struct resource_handlers
|
struct resource_handlers
|
||||||
{
|
{
|
||||||
const char *resType;
|
const char *resType;
|
||||||
ResourceLoadFun *loadFun;
|
ResourceLoadFun *loadFun;
|
||||||
ResourceFreeFun *freeFun;
|
ResourceFreeFun *freeFun;
|
||||||
ResourceStringFun *toString;
|
ResourceStringFun *toString;
|
||||||
} ResourceHandlers;
|
};
|
||||||
|
|
||||||
typedef struct resource_desc
|
struct resource_desc
|
||||||
{
|
{
|
||||||
RESOURCE res_id;
|
RESOURCE res_id;
|
||||||
char *fname;
|
char *fname;
|
||||||
@@ -39,7 +42,7 @@ typedef struct resource_desc
|
|||||||
RESOURCE_DATA resdata;
|
RESOURCE_DATA resdata;
|
||||||
// refcount is rudimentary as nothing really frees the descriptors
|
// refcount is rudimentary as nothing really frees the descriptors
|
||||||
unsigned refcount;
|
unsigned refcount;
|
||||||
} ResourceDesc;
|
};
|
||||||
|
|
||||||
struct resource_index_desc
|
struct resource_index_desc
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user