Compare commits

..

2 Commits

Author SHA1 Message Date
b0a29f5800 Install the archive libipc.a by default. 2024-06-06 20:12:50 +02:00
88244a7e64 Change version. 2024-06-06 16:12:23 +02:00
4 changed files with 6 additions and 4 deletions

View File

@ -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

2
ipc.pc
View File

@ -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}

View File

@ -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

View File

@ -20,6 +20,7 @@ install-pkgconfig:
install -m 0644 ipc.pc $(PKGCONFIGDIR)
install-library:
[ -d $(LIBDIR) ] || install -m 0755 -d $(LIBDIR)
install -m 0644 zig-out/lib/libipc.a $(LIBDIR)
install -m 0644 zig-out/lib/libipc.so $(LIBDIR)
install-header:
[ -d $(INCLUDEDIR) ] || install -m 0755 -d $(INCLUDEDIR)