2026-06-20 21:21:20 +03:00
|
|
|
#ifndef VMSIG_INPUT_H
|
|
|
|
|
#define VMSIG_INPUT_H
|
|
|
|
|
|
|
|
|
|
/* Private config of the input adapter (vmctl). cfg==NULL => stub mode. Armed mode
|
2026-06-21 10:31:36 +03:00
|
|
|
* (VMSIG_WITH_VMCTL) opens vmctl_open() and actuates for real. Injection is ALWAYS
|
|
|
|
|
* uinput (orphaned host uinput + external QEMU input-linux). qmp_path is kept for the
|
|
|
|
|
* SERVICE path (power/lifecycle via vmctl QMP), not for input injection. */
|
2026-06-20 21:21:20 +03:00
|
|
|
typedef struct {
|
|
|
|
|
int stub;
|
2026-06-21 10:31:36 +03:00
|
|
|
const char* qmp_path; /* for power/lifecycle (vmctl QMP); NOT input injection */
|
2026-06-20 21:21:20 +03:00
|
|
|
} 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 */
|