rough framework
[lemu] / common.h
1 #ifndef COMMON_H
2 #define COMMON_H
3
4 #include <sys/time.h>
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <netdb.h>
8
9 #define UNUSED __attribute__((__unused__))
10
11 int
12 timeval_diff(struct timeval *result, struct timeval *x, struct timeval *y);
13
14 void
15 timeval_increment(struct timeval *result, struct timeval *diff);
16
17 int
18 string_to_addrinfo_call(char *in, unsigned int flags, int (*ai_cb)(struct addrinfo *, void *), void *cb_data);
19
20 #endif /* COMMON_H */