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


#ifndef ID_MANAGER_H

#define ID_MANAGER_H

#define MAX_ID		1000
#define ID_UNKNOWN	-1

#include "list.h"

extern list_t * newListID();
extern int getNewID(list_t *p);
extern int isRegisterID(list_t *p, int id);
extern void delID(list_t *p, int id);
extern void replaceID(list_t *p, int old_id, int new_id);
extern void destroyListID(list_t *p);

#endif