1.1 --- a/Makefile Wed Mar 24 23:18:06 2021 +0100
1.2 +++ b/Makefile Wed Mar 24 23:44:53 2021 +0100
1.3 @@ -2,8 +2,8 @@
1.4 L4DIR ?= $(PKGDIR)/../..
1.5
1.6 TARGET = \
1.7 - dstest_block_client dstest_host_client dstest_test_client \
1.8 - dstest_block_server dstest_host_server dstest_test_server
1.9 + dstest_block_client dstest_host_client dstest_pipe_client dstest_test_client \
1.10 + dstest_block_server dstest_host_server dstest_pipe_server dstest_test_server
1.11
1.12 MODE = static
1.13
1.14 @@ -24,13 +24,16 @@
1.15 opener_context_object_NAME = OpenerContextObject
1.16 opener_context_object_INTERFACES = dataspace opener_context
1.17
1.18 -COMP_INTERFACES_CC = mapped_file_object opener_context_object
1.19 +pipe_object_NAME = PipeObject
1.20 +pipe_object_INTERFACES = dataspace pipe
1.21 +
1.22 +COMP_INTERFACES_CC = mapped_file_object opener_context_object pipe_object
1.23
1.24 # Individual interfaces.
1.25
1.26 -CLIENT_INTERFACES_CC = dataspace file mapped_file opener opener_context
1.27 +CLIENT_INTERFACES_CC = dataspace file mapped_file opener opener_context pipe pipe_opener
1.28
1.29 -SERVER_INTERFACES_CC = opener $(call common_interfaces,$(COMP_INTERFACES_CC))
1.30 +SERVER_INTERFACES_CC = opener pipe_opener $(call common_interfaces,$(COMP_INTERFACES_CC))
1.31
1.32 # Generated and plain source files.
1.33
1.34 @@ -44,13 +47,16 @@
1.35
1.36 PLAIN_SRC_CC_dstest_host_client = dstest_host_client.cc file.cc
1.37
1.38 +PLAIN_SRC_CC_dstest_pipe_client = dstest_pipe_client.cc file.cc
1.39 +
1.40 PLAIN_SRC_CC_dstest_test_client = dstest_test_client.cc file.cc
1.41
1.42 PLAIN_SRC_CC_common_server = \
1.43 access_map.cc accessing.cc accessor.cc \
1.44 flexpage.cc file_pager.cc ipc.cc memory.cc \
1.45 opener_resource.cc opener_context_resource.cc \
1.46 - page_mapper.cc page_queue.cc pager.cc pages.cc paging.cc \
1.47 + page_mapper.cc page_queue.cc pager.cc \
1.48 + pages.cc pages_conserving.cc paging.cc \
1.49 region.cc resource_server.cc simple_pager.cc
1.50
1.51 PLAIN_SRC_CC_dstest_block_server = \
1.52 @@ -64,6 +70,12 @@
1.53 dstest_host_server.cc \
1.54 files/host_file_accessor.cc files/host_file_opener.cc
1.55
1.56 +PLAIN_SRC_CC_dstest_pipe_server = \
1.57 + $(PLAIN_SRC_CC_common_server) \
1.58 + dstest_pipe_server.cc \
1.59 + pipe_opener_resource.cc pipe_pager.cc \
1.60 + files/pipe_accessor.cc files/pipe_paging.cc
1.61 +
1.62 PLAIN_SRC_CC_dstest_test_server = \
1.63 $(PLAIN_SRC_CC_common_server) \
1.64 dstest_test_server.cc \
1.65 @@ -81,6 +93,11 @@
1.66 $(PLAIN_SRC_CC_dstest_host_client) \
1.67 $(COMMON_SRC_CC)
1.68
1.69 +SRC_CC_dstest_pipe_client = \
1.70 + $(CLIENT_INTERFACES_SRC_CC) \
1.71 + $(PLAIN_SRC_CC_dstest_pipe_client) \
1.72 + $(COMMON_SRC_CC)
1.73 +
1.74 SRC_CC_dstest_test_client = \
1.75 $(CLIENT_INTERFACES_SRC_CC) \
1.76 $(PLAIN_SRC_CC_dstest_test_client) \
1.77 @@ -96,6 +113,11 @@
1.78 $(PLAIN_SRC_CC_dstest_host_server) \
1.79 $(COMMON_SRC_CC)
1.80
1.81 +SRC_CC_dstest_pipe_server = \
1.82 + $(SERVER_INTERFACES_SRC_CC) \
1.83 + $(PLAIN_SRC_CC_dstest_pipe_server) \
1.84 + $(COMMON_SRC_CC)
1.85 +
1.86 SRC_CC_dstest_test_server = \
1.87 $(SERVER_INTERFACES_SRC_CC) \
1.88 $(PLAIN_SRC_CC_dstest_test_server) \
1.89 @@ -112,10 +134,14 @@
1.90
1.91 $(PLAIN_SRC_CC_dstest_host_client): $(CLIENT_INTERFACES_SRC_CC)
1.92
1.93 +$(PLAIN_SRC_CC_dstest_pipe_client): $(CLIENT_INTERFACES_SRC_CC)
1.94 +
1.95 $(PLAIN_SRC_CC_dstest_test_client): $(CLIENT_INTERFACES_SRC_CC)
1.96
1.97 $(PLAIN_SRC_CC_dstest_block_server): $(SERVER_INTERFACES_SRC_CC)
1.98
1.99 $(PLAIN_SRC_CC_dstest_host_server): $(SERVER_INTERFACES_SRC_CC)
1.100
1.101 +$(PLAIN_SRC_CC_dstest_pipe_server): $(SERVER_INTERFACES_SRC_CC)
1.102 +
1.103 $(PLAIN_SRC_CC_dstest_test_server): $(SERVER_INTERFACES_SRC_CC)