Skip to content

Commit b0de10f

Browse files
committed
Initial implementation of new XDR-based IPC
1 parent ecb3a32 commit b0de10f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2651
-41
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
libproc.dylib*
55
.DS_Store
66
.vscode
7+
cmd_schema.c
8+
cmd_schema.h

Makefile

+12-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ include Make.rules.$(PLAT)
55
include Make.rules.arm
66

77
# Input/Output Variables
8-
SOURCES=priorityQueue.c events.c proclib.c ipc.c debug.c cmd.c config.c hashtable.c util.c md5.c critical.c eventTimer.c telm_dict.c zmqlite.c json.c
8+
SOURCES=priorityQueue.c events.c proclib.c ipc.c debug.c cmd.c config.c hashtable.c util.c md5.c critical.c eventTimer.c telm_dict.c zmqlite.c json.c cmd_schema.c xdr.c
99
LIBRARY_NAME=proc
1010
MAJOR_VERS=2
1111
MINOR_VERS=1.1
1212

1313
# Install Variables
14-
INCLUDE=proclib.h events.h ipc.h config.h debug.h cmd.h polysat.h hashtable.h util.h md5.h priorityQueue.h eventTimer.h telm_dict.h zmqlite.h critical.h
14+
INCLUDE=proclib.h events.h ipc.h config.h debug.h cmd.h polysat.h hashtable.h util.h md5.h priorityQueue.h eventTimer.h telm_dict.h zmqlite.h critical.h xdr.h cmd_schema.h
1515

1616
# Build Variables
1717
override CFLAGS+=$(SYMBOLS) -Wall -Werror -std=gnu99 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 $(SO_CFLAGS)
@@ -37,6 +37,15 @@ $(LIB_NAME): $(OBJECTS)
3737
cleanup_test: cleanup_test.c util.c priorityQueue.c debug.c
3838
$(CC) $(CFLAGS) cleanup_test.c util.c priorityQueue.c debug.c $(LDFLAGS) -o $@
3939

40+
cmd.c: cmd_schema.h
41+
ipc.c: cmd_schema.h
42+
43+
cmd_schema.h: cmd_schema.x
44+
xdrgen/xdrgen --target libproc --output cmd_schema cmd_schema.x
45+
46+
cmd_schema.c: cmd_schema.x
47+
xdrgen/xdrgen --target libproc --output cmd_schema cmd_schema.x
48+
4049

4150
install: all
4251
cp $(LIB_NAME) $(LIB_PATH)
@@ -59,4 +68,4 @@ test:
5968
$(CC) $(CFLAGS) -c $(SRC_PATH)/$< -o $@
6069

6170
clean:
62-
rm -rf *.o $(LIBRARY).$(SO_EXT)* $(LIBRARY) cleanup_test
71+
rm -rf *.o $(LIBRARY).$(SO_EXT)* $(LIBRARY) cleanup_test cmd_schema.c cmd_schema.h

0 commit comments

Comments
 (0)