got rid of ofs
[tridge/junkcode.git] / ux_demo / ux_demo.h
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
4 #include <stdarg.h>
5 #include <fcntl.h>
6 #include <sys/ioctl.h>
7 #include <sys/types.h>
8 #include <sys/socket.h>
9 #include <sys/un.h>
10 #include <sys/poll.h>
11
12 // #include "snap8051.h"
13
14 #define SOCKET_NAME "/tmp/ux_demo"
15
16
17 /* some prototypes */
18 int ux_socket_connect(const char *name);
19 int ux_socket_listen(const char *name);
20 void *x_malloc(size_t size);
21 void *x_realloc(void *ptr, size_t size);
22 int fd_printf(int fd, const char *format, ...);
23 int send_packet(int fd, const char *buf, size_t len);
24 int recv_packet(int fd, char **buf, size_t *len);
25