diff --git a/build.zig b/build.zig index 3a3e222..a8a5ce6 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,6 @@ const std = @import("std"); -const VERSION = "0.1.0"; +const VERSION = "0.1.1"; // Although this function looks imperative, note that its job is to // declaratively construct a build graph that will be executed by an external diff --git a/ipc.pc b/ipc.pc index f854ce1..6aaa656 100644 --- a/ipc.pc +++ b/ipc.pc @@ -3,6 +3,6 @@ libdir=/usr/local/lib Name: LibIPC Description: The simplest Inter Process Communication library -Version: 0.1.0 +Version: 0.1.1 Libs: -L${libdir} -lipc Cflags: -I${includedir} diff --git a/libipc.h b/libipc.h index bca8c14..2bddef9 100644 --- a/libipc.h +++ b/libipc.h @@ -41,8 +41,9 @@ int ipc_close_all (void* ctx); int ipc_add_external (void* ctx, int newfd); int ipc_add_switch (void* ctx, int fd1, int fd2); +// Returned "char" is a cb_event_types enum. int ipc_set_switch_callbacks (void* ctx, int fd - , enum cb_event_types (*in (int orig, const char *payload, uint32_t *mlen)) - , enum cb_event_types (*out(int dest, char *payload, uint32_t mlen))); + , char (*in (int orig, const char *payload, uint32_t *mlen)) + , char (*out(int dest, char *payload, uint32_t mlen))); #endif