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


#ifndef ID_MANAGER_H

#define ID_MANAGER_H

#define MAX_ID	1000

#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