summaryrefslogtreecommitdiff
path: root/src/base/idManager.h
blob: fc28c74c26afe401bcde340fdcfea319716588a0 (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