summaryrefslogtreecommitdiff
path: root/include/idManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/idManager.h')
-rw-r--r--include/idManager.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/idManager.h b/include/idManager.h
new file mode 100644
index 0000000..a525a56
--- /dev/null
+++ b/include/idManager.h
@@ -0,0 +1,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