12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef __BKD_H__
- #define __BKD_H__
- #include <sys/shm.h>
- #include <arpa/inet.h>
- #include <errno.h>
- #include <fcntl.h>
- #include <inttypes.h>
- #include <linux/sockios.h>
- #include <linux/types.h>
- #include <linux/socket.h>
- #include <netinet/in.h>
- #include <pthread.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdarg.h>
- #include <math.h>
- #include <string.h>
- #include <stdbool.h>
- #include <sys/socket.h>
- #include <sys/time.h>
- #include <sys/stat.h>
- #include <sys/ioctl.h>
- #include <syslog.h>
- #include <time.h>
- #include <termios.h>
- #include <unistd.h>
- #include <signal.h>
- #define BKD_HEAD_VERSION "1.1.1"
- //
- // shared memory for communication
- //
- #define BKDSHMBUFSIZE 1*1024*1024
- #define BKDSHMID 0x22345673
- struct bkd_cmd_t{
- int ready;
- char szcmd[64];
- unsigned int serial;
- char buf[128];
- };
- struct bkd_rsp_t{
- int ready;
- char szcmd[64];
- unsigned int serial;
- char buf[BKDSHMBUFSIZE];
- };
- struct bkd_shm_t
- {
- struct bkd_cmd_t cmd;
- struct bkd_rsp_t rsp;
- };
- #endif
|