mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-22 01:33:07 +08:00
21 lines
331 B
C
21 lines
331 B
C
#ifndef __MAP_COMMON_H
|
|
#define __MAP_COMMON_H
|
|
|
|
// Ring buffer for kernel->user communication
|
|
#define RB_EVENT_MAX_MESSAGE_SIZE 512
|
|
typedef enum {
|
|
INFO,
|
|
DEBUG,
|
|
EXIT,
|
|
ERROR
|
|
} event_type_t;
|
|
|
|
struct rb_event {
|
|
int pid;
|
|
char message[RB_EVENT_MAX_MESSAGE_SIZE];
|
|
int code;
|
|
event_type_t event_type;
|
|
};
|
|
|
|
#endif
|