-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat_timeq.h
More file actions
executable file
·40 lines (30 loc) · 833 Bytes
/
chat_timeq.h
File metadata and controls
executable file
·40 lines (30 loc) · 833 Bytes
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
#if !defined(CHAT_TIMEQ_H)
#define CHAT_TIMEQ_H 1
#include <sys/time.h>
typedef struct chat_l_timeq_s * chat_timeq_t;
int
chat_timeq_init(
chat_timeq_t * out_timeq);
int
chat_timeq_destroy(
chat_timeq_t timeq);
int
chat_timeq_enqueue(
chat_timeq_t timeq,
struct timeval * tm,
void * value);
void *
chat_timeq_dequeue(
chat_timeq_t timeq);
void *
chat_timeq_peek(
chat_timeq_t timeq);
int
chat_timeq_remove(
chat_timeq_t timeq,
void * value);
int
chat_timeq_next(
chat_timeq_t timeq,
struct timeval * out_tm);
#endif