Skip to content

Commit c41b428

Browse files
committed
Use PPXs where possible
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
1 parent 8bf3ea9 commit c41b428

File tree

12 files changed

+93
-99
lines changed

12 files changed

+93
-99
lines changed

_oasis

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Library xcp
1313
Findlibname: xcp
1414
Modules: Cohttp_posix_io, Posix_channel, Open_uri, Xcp_client, Xcp_service, Xcp_channel, Xcp_channel_protocol, Syslog, Debug
1515
CSources: syslog_stubs.c
16-
BuildDepends: cmdliner, uri, re, cohttp, xmlm, unix, sexplib, sexplib.syntax, rpclib, rpclib.syntax, rpclib.xml, threads, message_switch (>= 0.11.0), message_switch.unix, fd-send-recv, xcp-inventory, xapi-backtrace
16+
BuildDepends: cmdliner, uri, re, cohttp, xmlm, unix, ppx_sexp_conv, sexplib, ppx_deriving_rpc, rpclib, rpclib.xml, threads, message_switch (>= 0.11.0), message_switch.unix, fd-send-recv, xcp-inventory, xapi-backtrace
1717

1818
Library xcp_storage
1919
CompiledObject: best
2020
Path: storage
2121
Findlibname: storage
2222
Findlibparent: xcp
2323
Modules: Storage_interface, Vdi_automaton, Storage_client, Storage_skeleton, Storage_skeleton_test
24-
BuildDepends: xcp, threads, rpclib, rpclib.syntax
24+
BuildDepends: xcp, threads, rpclib
2525

2626
Executable storage_test
2727
CompiledObject: best
@@ -36,39 +36,39 @@ Library xcp_network
3636
Findlibname: network
3737
Findlibparent: xcp
3838
Modules: Network_interface, Network_client, Network_stats
39-
BuildDepends: xcp, threads, rpclib, rpclib.syntax
39+
BuildDepends: xcp, threads, rpclib
4040

4141
Library xcp_rrd
4242
CompiledObject: best
4343
Path: rrd
4444
Findlibname: rrd
4545
Findlibparent: xcp
4646
Modules: Data_source, Ds, Rrd_interface, Rrd_client
47-
BuildDepends: xcp, threads, rpclib, rpclib.syntax, rrd
47+
BuildDepends: xcp, threads, rpclib, rrd
4848

4949
Library xcp_xen
5050
CompiledObject: best
5151
Path: xen
5252
Findlibname: xen
5353
Findlibparent: xcp
5454
Modules: Xenops_interface, Xenops_types, Xenops_client, Device_number
55-
BuildDepends: xcp, threads, rpclib, rpclib.syntax
55+
BuildDepends: xcp, threads, ppx_deriving_rpc, rpclib
5656

5757
Library xcp_memory
5858
CompiledObject: best
5959
Path: memory
6060
Findlibname: memory
6161
Findlibparent: xcp
6262
Modules: Memory_interface, Memory_client
63-
BuildDepends: xcp, threads, rpclib, rpclib.syntax
63+
BuildDepends: xcp, threads, rpclib
6464

6565
Library xapi_v6
6666
CompiledObject: best
6767
Path: v6
6868
Findlibname: v6
6969
Findlibparent: xcp
7070
Modules: V6_interface, V6_client
71-
BuildDepends: xcp, threads, rpclib, rpclib.syntax
71+
BuildDepends: xcp, threads, rpclib
7272

7373
Executable channel_helper
7474
CompiledObject: best

_tags

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 2a0befa551f398e32c56a759b1351c69)
2+
# DO NOT EDIT (digest: 84bd6ed57b3561ce9ac6edd2793b3d1b)
33
# Ignore VCS directories, you can use the same kind of rule outside
44
# OASIS_START/STOP if you want to exclude directories that contains
55
# useless stuff for the build process
@@ -22,12 +22,12 @@ true: annot, bin_annot
2222
"lib/syslog_stubs.c": pkg_fd-send-recv
2323
"lib/syslog_stubs.c": pkg_message_switch
2424
"lib/syslog_stubs.c": pkg_message_switch.unix
25+
"lib/syslog_stubs.c": pkg_ppx_deriving_rpc
26+
"lib/syslog_stubs.c": pkg_ppx_sexp_conv
2527
"lib/syslog_stubs.c": pkg_re
2628
"lib/syslog_stubs.c": pkg_rpclib
27-
"lib/syslog_stubs.c": pkg_rpclib.syntax
2829
"lib/syslog_stubs.c": pkg_rpclib.xml
2930
"lib/syslog_stubs.c": pkg_sexplib
30-
"lib/syslog_stubs.c": pkg_sexplib.syntax
3131
"lib/syslog_stubs.c": pkg_threads
3232
"lib/syslog_stubs.c": pkg_unix
3333
"lib/syslog_stubs.c": pkg_uri
@@ -43,12 +43,12 @@ true: annot, bin_annot
4343
<storage/storage_test.{native,byte}>: pkg_message_switch
4444
<storage/storage_test.{native,byte}>: pkg_message_switch.unix
4545
<storage/storage_test.{native,byte}>: pkg_oUnit
46+
<storage/storage_test.{native,byte}>: pkg_ppx_deriving_rpc
47+
<storage/storage_test.{native,byte}>: pkg_ppx_sexp_conv
4648
<storage/storage_test.{native,byte}>: pkg_re
4749
<storage/storage_test.{native,byte}>: pkg_rpclib
48-
<storage/storage_test.{native,byte}>: pkg_rpclib.syntax
4950
<storage/storage_test.{native,byte}>: pkg_rpclib.xml
5051
<storage/storage_test.{native,byte}>: pkg_sexplib
51-
<storage/storage_test.{native,byte}>: pkg_sexplib.syntax
5252
<storage/storage_test.{native,byte}>: pkg_threads
5353
<storage/storage_test.{native,byte}>: pkg_unix
5454
<storage/storage_test.{native,byte}>: pkg_uri
@@ -63,12 +63,12 @@ true: annot, bin_annot
6363
<storage/*.ml{,i,y}>: pkg_message_switch
6464
<storage/*.ml{,i,y}>: pkg_message_switch.unix
6565
<storage/*.ml{,i,y}>: pkg_oUnit
66+
<storage/*.ml{,i,y}>: pkg_ppx_deriving_rpc
67+
<storage/*.ml{,i,y}>: pkg_ppx_sexp_conv
6668
<storage/*.ml{,i,y}>: pkg_re
6769
<storage/*.ml{,i,y}>: pkg_rpclib
68-
<storage/*.ml{,i,y}>: pkg_rpclib.syntax
6970
<storage/*.ml{,i,y}>: pkg_rpclib.xml
7071
<storage/*.ml{,i,y}>: pkg_sexplib
71-
<storage/*.ml{,i,y}>: pkg_sexplib.syntax
7272
<storage/*.ml{,i,y}>: pkg_threads
7373
<storage/*.ml{,i,y}>: pkg_unix
7474
<storage/*.ml{,i,y}>: pkg_uri
@@ -84,12 +84,12 @@ true: annot, bin_annot
8484
<network/*.ml{,i,y}>: pkg_fd-send-recv
8585
<network/*.ml{,i,y}>: pkg_message_switch
8686
<network/*.ml{,i,y}>: pkg_message_switch.unix
87+
<network/*.ml{,i,y}>: pkg_ppx_deriving_rpc
88+
<network/*.ml{,i,y}>: pkg_ppx_sexp_conv
8789
<network/*.ml{,i,y}>: pkg_re
8890
<network/*.ml{,i,y}>: pkg_rpclib
89-
<network/*.ml{,i,y}>: pkg_rpclib.syntax
9091
<network/*.ml{,i,y}>: pkg_rpclib.xml
9192
<network/*.ml{,i,y}>: pkg_sexplib
92-
<network/*.ml{,i,y}>: pkg_sexplib.syntax
9393
<network/*.ml{,i,y}>: pkg_threads
9494
<network/*.ml{,i,y}>: pkg_unix
9595
<network/*.ml{,i,y}>: pkg_uri
@@ -104,13 +104,13 @@ true: annot, bin_annot
104104
<rrd/*.ml{,i,y}>: pkg_fd-send-recv
105105
<rrd/*.ml{,i,y}>: pkg_message_switch
106106
<rrd/*.ml{,i,y}>: pkg_message_switch.unix
107+
<rrd/*.ml{,i,y}>: pkg_ppx_deriving_rpc
108+
<rrd/*.ml{,i,y}>: pkg_ppx_sexp_conv
107109
<rrd/*.ml{,i,y}>: pkg_re
108110
<rrd/*.ml{,i,y}>: pkg_rpclib
109-
<rrd/*.ml{,i,y}>: pkg_rpclib.syntax
110111
<rrd/*.ml{,i,y}>: pkg_rpclib.xml
111112
<rrd/*.ml{,i,y}>: pkg_rrd
112113
<rrd/*.ml{,i,y}>: pkg_sexplib
113-
<rrd/*.ml{,i,y}>: pkg_sexplib.syntax
114114
<rrd/*.ml{,i,y}>: pkg_threads
115115
<rrd/*.ml{,i,y}>: pkg_unix
116116
<rrd/*.ml{,i,y}>: pkg_uri
@@ -125,12 +125,12 @@ true: annot, bin_annot
125125
<xen/*.ml{,i,y}>: pkg_fd-send-recv
126126
<xen/*.ml{,i,y}>: pkg_message_switch
127127
<xen/*.ml{,i,y}>: pkg_message_switch.unix
128+
<xen/*.ml{,i,y}>: pkg_ppx_deriving_rpc
129+
<xen/*.ml{,i,y}>: pkg_ppx_sexp_conv
128130
<xen/*.ml{,i,y}>: pkg_re
129131
<xen/*.ml{,i,y}>: pkg_rpclib
130-
<xen/*.ml{,i,y}>: pkg_rpclib.syntax
131132
<xen/*.ml{,i,y}>: pkg_rpclib.xml
132133
<xen/*.ml{,i,y}>: pkg_sexplib
133-
<xen/*.ml{,i,y}>: pkg_sexplib.syntax
134134
<xen/*.ml{,i,y}>: pkg_threads
135135
<xen/*.ml{,i,y}>: pkg_unix
136136
<xen/*.ml{,i,y}>: pkg_uri
@@ -145,12 +145,12 @@ true: annot, bin_annot
145145
<memory/*.ml{,i,y}>: pkg_fd-send-recv
146146
<memory/*.ml{,i,y}>: pkg_message_switch
147147
<memory/*.ml{,i,y}>: pkg_message_switch.unix
148+
<memory/*.ml{,i,y}>: pkg_ppx_deriving_rpc
149+
<memory/*.ml{,i,y}>: pkg_ppx_sexp_conv
148150
<memory/*.ml{,i,y}>: pkg_re
149151
<memory/*.ml{,i,y}>: pkg_rpclib
150-
<memory/*.ml{,i,y}>: pkg_rpclib.syntax
151152
<memory/*.ml{,i,y}>: pkg_rpclib.xml
152153
<memory/*.ml{,i,y}>: pkg_sexplib
153-
<memory/*.ml{,i,y}>: pkg_sexplib.syntax
154154
<memory/*.ml{,i,y}>: pkg_threads
155155
<memory/*.ml{,i,y}>: pkg_unix
156156
<memory/*.ml{,i,y}>: pkg_uri
@@ -165,12 +165,12 @@ true: annot, bin_annot
165165
<v6/*.ml{,i,y}>: pkg_fd-send-recv
166166
<v6/*.ml{,i,y}>: pkg_message_switch
167167
<v6/*.ml{,i,y}>: pkg_message_switch.unix
168+
<v6/*.ml{,i,y}>: pkg_ppx_deriving_rpc
169+
<v6/*.ml{,i,y}>: pkg_ppx_sexp_conv
168170
<v6/*.ml{,i,y}>: pkg_re
169171
<v6/*.ml{,i,y}>: pkg_rpclib
170-
<v6/*.ml{,i,y}>: pkg_rpclib.syntax
171172
<v6/*.ml{,i,y}>: pkg_rpclib.xml
172173
<v6/*.ml{,i,y}>: pkg_sexplib
173-
<v6/*.ml{,i,y}>: pkg_sexplib.syntax
174174
<v6/*.ml{,i,y}>: pkg_threads
175175
<v6/*.ml{,i,y}>: pkg_unix
176176
<v6/*.ml{,i,y}>: pkg_uri
@@ -186,12 +186,12 @@ true: annot, bin_annot
186186
<lib/channel_helper.{native,byte}>: pkg_lwt.unix
187187
<lib/channel_helper.{native,byte}>: pkg_message_switch
188188
<lib/channel_helper.{native,byte}>: pkg_message_switch.unix
189+
<lib/channel_helper.{native,byte}>: pkg_ppx_deriving_rpc
190+
<lib/channel_helper.{native,byte}>: pkg_ppx_sexp_conv
189191
<lib/channel_helper.{native,byte}>: pkg_re
190192
<lib/channel_helper.{native,byte}>: pkg_rpclib
191-
<lib/channel_helper.{native,byte}>: pkg_rpclib.syntax
192193
<lib/channel_helper.{native,byte}>: pkg_rpclib.xml
193194
<lib/channel_helper.{native,byte}>: pkg_sexplib
194-
<lib/channel_helper.{native,byte}>: pkg_sexplib.syntax
195195
<lib/channel_helper.{native,byte}>: pkg_threads
196196
<lib/channel_helper.{native,byte}>: pkg_unix
197197
<lib/channel_helper.{native,byte}>: pkg_uri
@@ -206,12 +206,12 @@ true: annot, bin_annot
206206
<lib/*.ml{,i,y}>: pkg_lwt.unix
207207
<lib/*.ml{,i,y}>: pkg_message_switch
208208
<lib/*.ml{,i,y}>: pkg_message_switch.unix
209+
<lib/*.ml{,i,y}>: pkg_ppx_deriving_rpc
210+
<lib/*.ml{,i,y}>: pkg_ppx_sexp_conv
209211
<lib/*.ml{,i,y}>: pkg_re
210212
<lib/*.ml{,i,y}>: pkg_rpclib
211-
<lib/*.ml{,i,y}>: pkg_rpclib.syntax
212213
<lib/*.ml{,i,y}>: pkg_rpclib.xml
213214
<lib/*.ml{,i,y}>: pkg_sexplib
214-
<lib/*.ml{,i,y}>: pkg_sexplib.syntax
215215
<lib/*.ml{,i,y}>: pkg_threads
216216
<lib/*.ml{,i,y}>: pkg_unix
217217
<lib/*.ml{,i,y}>: pkg_uri
@@ -229,12 +229,12 @@ true: annot, bin_annot
229229
<lib_test/test.{native,byte}>: pkg_message_switch
230230
<lib_test/test.{native,byte}>: pkg_message_switch.unix
231231
<lib_test/test.{native,byte}>: pkg_oUnit
232+
<lib_test/test.{native,byte}>: pkg_ppx_deriving_rpc
233+
<lib_test/test.{native,byte}>: pkg_ppx_sexp_conv
232234
<lib_test/test.{native,byte}>: pkg_re
233235
<lib_test/test.{native,byte}>: pkg_rpclib
234-
<lib_test/test.{native,byte}>: pkg_rpclib.syntax
235236
<lib_test/test.{native,byte}>: pkg_rpclib.xml
236237
<lib_test/test.{native,byte}>: pkg_sexplib
237-
<lib_test/test.{native,byte}>: pkg_sexplib.syntax
238238
<lib_test/test.{native,byte}>: pkg_threads
239239
<lib_test/test.{native,byte}>: pkg_unix
240240
<lib_test/test.{native,byte}>: pkg_uri
@@ -251,12 +251,12 @@ true: annot, bin_annot
251251
<lib_test/*.ml{,i,y}>: pkg_message_switch
252252
<lib_test/*.ml{,i,y}>: pkg_message_switch.unix
253253
<lib_test/*.ml{,i,y}>: pkg_oUnit
254+
<lib_test/*.ml{,i,y}>: pkg_ppx_deriving_rpc
255+
<lib_test/*.ml{,i,y}>: pkg_ppx_sexp_conv
254256
<lib_test/*.ml{,i,y}>: pkg_re
255257
<lib_test/*.ml{,i,y}>: pkg_rpclib
256-
<lib_test/*.ml{,i,y}>: pkg_rpclib.syntax
257258
<lib_test/*.ml{,i,y}>: pkg_rpclib.xml
258259
<lib_test/*.ml{,i,y}>: pkg_sexplib
259-
<lib_test/*.ml{,i,y}>: pkg_sexplib.syntax
260260
<lib_test/*.ml{,i,y}>: pkg_threads
261261
<lib_test/*.ml{,i,y}>: pkg_unix
262262
<lib_test/*.ml{,i,y}>: pkg_uri
@@ -274,12 +274,12 @@ true: annot, bin_annot
274274
<example/example.{native,byte}>: pkg_lwt.unix
275275
<example/example.{native,byte}>: pkg_message_switch
276276
<example/example.{native,byte}>: pkg_message_switch.unix
277+
<example/example.{native,byte}>: pkg_ppx_deriving_rpc
278+
<example/example.{native,byte}>: pkg_ppx_sexp_conv
277279
<example/example.{native,byte}>: pkg_re
278280
<example/example.{native,byte}>: pkg_rpclib
279-
<example/example.{native,byte}>: pkg_rpclib.syntax
280281
<example/example.{native,byte}>: pkg_rpclib.xml
281282
<example/example.{native,byte}>: pkg_sexplib
282-
<example/example.{native,byte}>: pkg_sexplib.syntax
283283
<example/example.{native,byte}>: pkg_threads
284284
<example/example.{native,byte}>: pkg_unix
285285
<example/example.{native,byte}>: pkg_uri
@@ -294,12 +294,12 @@ true: annot, bin_annot
294294
<example/*.ml{,i,y}>: pkg_lwt.unix
295295
<example/*.ml{,i,y}>: pkg_message_switch
296296
<example/*.ml{,i,y}>: pkg_message_switch.unix
297+
<example/*.ml{,i,y}>: pkg_ppx_deriving_rpc
298+
<example/*.ml{,i,y}>: pkg_ppx_sexp_conv
297299
<example/*.ml{,i,y}>: pkg_re
298300
<example/*.ml{,i,y}>: pkg_rpclib
299-
<example/*.ml{,i,y}>: pkg_rpclib.syntax
300301
<example/*.ml{,i,y}>: pkg_rpclib.xml
301302
<example/*.ml{,i,y}>: pkg_sexplib
302-
<example/*.ml{,i,y}>: pkg_sexplib.syntax
303303
<example/*.ml{,i,y}>: pkg_threads
304304
<example/*.ml{,i,y}>: pkg_unix
305305
<example/*.ml{,i,y}>: pkg_uri
@@ -309,18 +309,17 @@ true: annot, bin_annot
309309
<example/*.ml{,i,y}>: use_xcp
310310
<example/example.{native,byte}>: custom
311311
# OASIS_STOP
312-
<storage/*.ml{,i}>: syntax_camlp4o
313-
<xen/*.ml{,i}>: syntax_camlp4o
314-
<memory/*.ml{,i}>: syntax_camlp4o
315-
<network/*.ml{,i}>: syntax_camlp4o
316-
<rrd/*.ml{,i}>: syntax_camlp4o
317-
<lib/*.ml>: syntax_camlp4o
312+
<storage/storage_interface.ml{,i}>: syntax_camlp4o
313+
<xen/xenops_interface.ml{,i}>: syntax_camlp4o
314+
<memory/memory_interface.ml{,i}>: syntax_camlp4o
315+
<network/network_interface.ml{,i}>: syntax_camlp4o
316+
<rrd/rrd_interface.ml{,i}>: syntax_camlp4o
317+
<v6/v6_interface.ml>: syntax_camlp4o
318318
<storage/storage_interface.ml>: pkg_rpclib.idl
319319
<xen/xenops_interface.ml>: pkg_rpclib.idl
320320
<memory/memory_interface.ml>: pkg_rpclib.idl
321321
<network/network_interface.ml>: pkg_rpclib.idl
322322
<rrd/data_source.ml>: pkg_rpclib.idl
323323
<rrd/rrd_interface.ml>: pkg_rpclib.idl
324324
<v6/v6_interface.ml>: pkg_rpclib.idl
325-
<lib/xcp_channel.ml>: pkg_rpclib.syntax
326-
<lib/channel_helper.ml>: pkg_lwt.syntax
325+
<lib/xcp_channel_protocol.ml>: pkg_ppx_deriving_rpc

lib/META

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 4c2fff058ec9d19d5bacfab9163ebe98)
2+
# DO NOT EDIT (digest: d61b4e5a5c0d213787a9ffd3db8cee24)
33
version = "1.2.0"
44
description =
55
"Interface definitions and common boilerplate for the xapi toolstack"
66
requires =
7-
"cmdliner uri re cohttp xmlm unix sexplib sexplib.syntax rpclib rpclib.syntax rpclib.xml threads message_switch message_switch.unix fd-send-recv xcp-inventory xapi-backtrace"
7+
"cmdliner uri re cohttp xmlm unix ppx_sexp_conv sexplib ppx_deriving_rpc rpclib rpclib.xml threads message_switch message_switch.unix fd-send-recv xcp-inventory xapi-backtrace"
88
archive(byte) = "xcp.cma"
99
archive(byte, plugin) = "xcp.cma"
1010
archive(native) = "xcp.cmxa"
@@ -14,7 +14,7 @@ package "xen" (
1414
version = "1.2.0"
1515
description =
1616
"Interface definitions and common boilerplate for the xapi toolstack"
17-
requires = "xcp threads rpclib rpclib.syntax"
17+
requires = "xcp threads ppx_deriving_rpc rpclib"
1818
archive(byte) = "xcp_xen.cma"
1919
archive(byte, plugin) = "xcp_xen.cma"
2020
archive(native) = "xcp_xen.cmxa"
@@ -26,7 +26,7 @@ package "v6" (
2626
version = "1.2.0"
2727
description =
2828
"Interface definitions and common boilerplate for the xapi toolstack"
29-
requires = "xcp threads rpclib rpclib.syntax"
29+
requires = "xcp threads rpclib"
3030
archive(byte) = "xapi_v6.cma"
3131
archive(byte, plugin) = "xapi_v6.cma"
3232
archive(native) = "xapi_v6.cmxa"
@@ -38,7 +38,7 @@ package "storage" (
3838
version = "1.2.0"
3939
description =
4040
"Interface definitions and common boilerplate for the xapi toolstack"
41-
requires = "xcp threads rpclib rpclib.syntax"
41+
requires = "xcp threads rpclib"
4242
archive(byte) = "xcp_storage.cma"
4343
archive(byte, plugin) = "xcp_storage.cma"
4444
archive(native) = "xcp_storage.cmxa"
@@ -50,7 +50,7 @@ package "rrd" (
5050
version = "1.2.0"
5151
description =
5252
"Interface definitions and common boilerplate for the xapi toolstack"
53-
requires = "xcp threads rpclib rpclib.syntax rrd"
53+
requires = "xcp threads rpclib rrd"
5454
archive(byte) = "xcp_rrd.cma"
5555
archive(byte, plugin) = "xcp_rrd.cma"
5656
archive(native) = "xcp_rrd.cmxa"
@@ -62,7 +62,7 @@ package "network" (
6262
version = "1.2.0"
6363
description =
6464
"Interface definitions and common boilerplate for the xapi toolstack"
65-
requires = "xcp threads rpclib rpclib.syntax"
65+
requires = "xcp threads rpclib"
6666
archive(byte) = "xcp_network.cma"
6767
archive(byte, plugin) = "xcp_network.cma"
6868
archive(native) = "xcp_network.cmxa"
@@ -74,7 +74,7 @@ package "memory" (
7474
version = "1.2.0"
7575
description =
7676
"Interface definitions and common boilerplate for the xapi toolstack"
77-
requires = "xcp threads rpclib rpclib.syntax"
77+
requires = "xcp threads rpclib"
7878
archive(byte) = "xcp_memory.cma"
7979
archive(byte, plugin) = "xcp_memory.cma"
8080
archive(native) = "xcp_memory.cmxa"

lib/channel_helper.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module Common = struct
4141
verbose: bool;
4242
debug: bool;
4343
port: int;
44-
} with rpc
44+
} [@@deriving rpc]
4545

4646
let make verbose debug port =
4747
{ verbose; debug; port }

lib/xcp_channel.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ type t = Unix.file_descr
33
let file_descr_of_t t = t
44
let t_of_file_descr t = t
55

6-
type protocols = Xcp_channel_protocol.t list with rpc
6+
type protocols = Xcp_channel_protocol.t list [@@deriving rpc]
77

88
let rpc_of_t fd =
99
let protocols = Posix_channel.send fd in

lib/xcp_channel_protocol.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ type t =
1616
| TCP_proxy of string * int (** IP, port *)
1717
| V4V_proxy of int * int (** domid, port *)
1818
| Unix_sendmsg of int * string * string (** domid, path, token *)
19-
with rpc
19+
[@@deriving rpc]
2020

2121

0 commit comments

Comments
 (0)