-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.h
43 lines (29 loc) · 810 Bytes
/
list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef LIST_H
#define LIST_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "item.h"
#include "tiempo.h"
struct list_t {
void **it;
int used;
int size;
int index;
};
int list_init(struct list_t **list_ptr, int size);
void list_add(struct list_t *list, void* item);
struct list_t *list_def;
int list_def_init(int size);
void list_def_add(void* item);
void list_clear(struct list_t *list);
void list_def_clear();
void list_fill(struct list_t *list);
void list_def_fill();
int list_search(struct list_t *list, unsigned char *mac);
int list_def_search(unsigned char *mac);
int list_add_mac(struct list_t *list, unsigned char *mac, int signal);
int list_def_add_mac(unsigned char *mac, int signal);
void list_send_last(struct list_t *list);
void list_def_send_last();
#endif