1
0
Fork 0
forked from wry/wry

config: expose runtime protocol

This commit is contained in:
kossLAN 2026-05-29 18:36:27 -04:00
parent bcc85c8b1b
commit e3f122e903
No known key found for this signature in database
16 changed files with 179 additions and 157 deletions

View file

@ -8,9 +8,9 @@ use {
},
isnt::std_1::primitive::IsntConstPtrExt,
jay_config::{
_private::{
ConfigEntry, VERSION,
messages::{ClientMessage, Response, ServerMessage},
protocol::{
ClientMessage, ConfigEntry, InitMessage, Response, ServerHandler, ServerMessage, Unref,
VERSION,
},
Axis, Direction,
input::{InputDevice, Seat},
@ -54,9 +54,9 @@ where
unsafe fn init(
srv_data: *const u8,
srv_unref: jay_config::_private::Unref,
srv_handler: jay_config::_private::ServerHandler,
_msg: jay_config::_private::messages::InitMessage,
srv_unref: Unref,
srv_handler: ServerHandler,
_msg: InitMessage,
) -> *const u8 {
let tc = CONFIG.get();
assert!(tc.is_not_null());
@ -128,8 +128,8 @@ unsafe fn handle_msg(data: *const u8, msg: &ServerMessage) {
#[derive(Copy, Clone)]
struct ServerData {
srv_data: *const u8,
srv_unref: jay_config::_private::Unref,
srv_handler: jay_config::_private::ServerHandler,
srv_unref: Unref,
srv_handler: ServerHandler,
}
pub struct TestConfig {