From 6601eb61b0bea8ddd7c5d5f65f80fff5b1b7b292 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Wed, 18 Jan 2023 17:26:06 +0100 Subject: [PATCH] Bindings: fixing libipc.h. --- zig-impl/libipc.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zig-impl/libipc.h b/zig-impl/libipc.h index c425685..0038f45 100644 --- a/zig-impl/libipc.h +++ b/zig-impl/libipc.h @@ -1,6 +1,8 @@ #ifndef LIBIPC #define LIBIPC +#include + struct message { uint32_t size; char* payload; @@ -20,10 +22,10 @@ enum event_types { // Return type of callback functions when switching. enum cb_event_types { - NO_ERROR = 0, // No error. A message was generated. - , ERROR = 1, // Generic error. - , FD_CLOSING = 2, // The fd is closing. - , IGNORE = 3, // The message should be ignored (protocol specific). + CB_NO_ERROR = 0 // No error. A message was generated. + , CB_ERROR = 1 // Generic error. + , CB_FD_CLOSING = 2 // The fd is closing. + , CB_IGNORE = 3 // The message should be ignored (protocol specific). }; int ipc_context_init (void** ptr);