Compare commits
2 Commits
13081f3612
...
b0a29f5800
Author | SHA1 | Date | |
---|---|---|---|
b0a29f5800 | |||
88244a7e64 |
@ -1,6 +1,6 @@
|
|||||||
const std = @import("std");
|
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
|
// Although this function looks imperative, note that its job is to
|
||||||
// declaratively construct a build graph that will be executed by an external
|
// declaratively construct a build graph that will be executed by an external
|
||||||
|
2
ipc.pc
2
ipc.pc
@ -3,6 +3,6 @@ libdir=/usr/local/lib
|
|||||||
|
|
||||||
Name: LibIPC
|
Name: LibIPC
|
||||||
Description: The simplest Inter Process Communication library
|
Description: The simplest Inter Process Communication library
|
||||||
Version: 0.1.0
|
Version: 0.1.1
|
||||||
Libs: -L${libdir} -lipc
|
Libs: -L${libdir} -lipc
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
5
libipc.h
5
libipc.h
@ -41,8 +41,9 @@ int ipc_close_all (void* ctx);
|
|||||||
int ipc_add_external (void* ctx, int newfd);
|
int ipc_add_external (void* ctx, int newfd);
|
||||||
int ipc_add_switch (void* ctx, int fd1, int fd2);
|
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
|
int ipc_set_switch_callbacks (void* ctx, int fd
|
||||||
, enum cb_event_types (*in (int orig, const char *payload, uint32_t *mlen))
|
, char (*in (int orig, const char *payload, uint32_t *mlen))
|
||||||
, enum cb_event_types (*out(int dest, char *payload, uint32_t mlen)));
|
, char (*out(int dest, char *payload, uint32_t mlen)));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
1
makefile
1
makefile
@ -20,6 +20,7 @@ install-pkgconfig:
|
|||||||
install -m 0644 ipc.pc $(PKGCONFIGDIR)
|
install -m 0644 ipc.pc $(PKGCONFIGDIR)
|
||||||
install-library:
|
install-library:
|
||||||
[ -d $(LIBDIR) ] || install -m 0755 -d $(LIBDIR)
|
[ -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 -m 0644 zig-out/lib/libipc.so $(LIBDIR)
|
||||||
install-header:
|
install-header:
|
||||||
[ -d $(INCLUDEDIR) ] || install -m 0755 -d $(INCLUDEDIR)
|
[ -d $(INCLUDEDIR) ] || install -m 0755 -d $(INCLUDEDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user