summaryrefslogtreecommitdiff
path: root/src/base/idManager.h
blob: d15741972378ee6343721cf7658d7ef6bdb33027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#ifndef ID_MANAGER_H
#define ID_MANAGER_H
#define MAX_ID		1000000
#define ID_UNKNOWN	-1
#ifdef __WIN32__
#define random rand
#endif
#include "list.h"

extern void initListID();
extern int isRegisterID(int id);
extern int getNewIDcount(int count);
extern int getNewID();
extern void incID(int id);
extern void delID(int id);
extern void replaceID(int old_id, int new_id);
extern void quitListID();

#endif