mirror of
https://dev.lirent.ru/Vatrog/vm-automation-signaling.git
synced 2026-06-26 04:36:37 +03:00
19 lines
701 B
C
19 lines
701 B
C
|
|
#ifndef VMSIG_INPUT_H
|
||
|
|
#define VMSIG_INPUT_H
|
||
|
|
|
||
|
|
/* Private config of the input adapter (vmctl). cfg==NULL => stub mode. Armed mode
|
||
|
|
* (VMSIG_WITH_VMCTL) opens vmctl_open() and actuates for real. driver is an int so
|
||
|
|
* as not to pull vmctl.h into this header (values match VMCTL_DRIVER_*). */
|
||
|
|
typedef struct {
|
||
|
|
int stub;
|
||
|
|
int driver; /* 0=QMP, 1=UINPUT (see VMCTL_DRIVER_*) */
|
||
|
|
const char* qmp_path;
|
||
|
|
const char* input_bus;
|
||
|
|
int ptr_mode;
|
||
|
|
} vmsig_input_cfg;
|
||
|
|
|
||
|
|
/* Input event codes/contract are PUBLIC: vmsig_input / vmsig_input_kind in
|
||
|
|
* include/vmsig_event.h (external control encodes them into inln). No private duplicate. */
|
||
|
|
|
||
|
|
#endif /* VMSIG_INPUT_H */
|