2012-11-07 19:11:14 +00:00
|
|
|
#ifndef ALLOCATOR_THREAD_H
|
|
|
|
#define ALLOCATOR_THREAD_H
|
|
|
|
|
2012-11-07 15:49:14 +00:00
|
|
|
#include <unistd.h>
|
2012-11-07 19:11:14 +00:00
|
|
|
#include "ip_type.h"
|
|
|
|
|
|
|
|
#define MSG_LEN_MAX 256
|
2012-11-07 15:49:14 +00:00
|
|
|
|
2013-01-21 00:54:45 +00:00
|
|
|
extern int req_pipefd[2];
|
|
|
|
extern int resp_pipefd[2];
|
|
|
|
|
2012-11-07 19:11:14 +00:00
|
|
|
void at_init(void);
|
2012-11-07 15:49:14 +00:00
|
|
|
void at_close(void);
|
2012-11-07 19:11:14 +00:00
|
|
|
size_t at_get_host_for_ip(ip_type ip, char* readbuf);
|
|
|
|
ip_type at_get_ip_for_host(char* host, size_t len);
|
2012-11-07 15:49:14 +00:00
|
|
|
|
|
|
|
//RcB: DEP "allocator_thread.c"
|
2012-12-25 17:01:11 +00:00
|
|
|
#endif
|
|
|
|
|