From 4c47461ac997947fc39d0009928ef36c55b8e4ee Mon Sep 17 00:00:00 2001 From: Karchnu Date: Thu, 9 Jul 2020 01:46:22 +0200 Subject: [PATCH] fixing ctx structure --- src/ipc/lowlevel.cr | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ipc/lowlevel.cr b/src/ipc/lowlevel.cr index fd7e1b8..71bef9d 100644 --- a/src/ipc/lowlevel.cr +++ b/src/ipc/lowlevel.cr @@ -21,13 +21,6 @@ lib LibIPC revents : LibC::Short end - struct Ctx - cinfos : Connection* - pollfd : Pollfd* - tx : Messages - size : LibC::UInt64T - end - struct Switching origin : LibC::Int dest : LibC::Int @@ -42,6 +35,14 @@ lib LibIPC size : LibC::UInt end + struct Ctx + cinfos : Connection* + pollfd : Pollfd* + size : LibC::UInt64T + tx : Messages + switchdb : Switchings + end + enum MessageType ServerClose Error