Skip to content

Commit 6d8288e

Browse files
authored
Merge pull request xapi-project#48 from xapi-project/ppx-ely
Merge ppx-ely into master for OCaml 4.02.3 and PPX
2 parents 40e7430 + a0f033a commit 6d8288e

File tree

6 files changed

+3979
-3390
lines changed

6 files changed

+3979
-3390
lines changed

_oasis

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OASISFormat: 0.2
1+
OASISFormat: 0.3
22
Name: xapi-storage-script
33
Version: 0.12.0
44
Synopsis: Adapter which allows xapi to call storage scripts
@@ -13,4 +13,4 @@ Executable xapi_script_storage
1313
MainIs: main.ml
1414
Custom: true
1515
Install: false
16-
BuildDepends: xcp, xcp.storage, xcp.rrd, async_inotify, threads, message_switch.async (>= 0.11.0), rpclib, xapi-storage, sexplib, sexplib.syntax, rpclib, rpclib.syntax
16+
BuildDepends: xcp, xcp.storage, xcp.rrd, async_inotify, threads, message_switch.async (>= 0.11.0), rpclib, xapi-storage, sexplib, ppx_sexp_conv, rpclib, ppx_deriving_rpc

_tags

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 2c22384c8337719c5d75ab0e5fc90afb)
2+
# DO NOT EDIT (digest: e05a6be8bb51317f3f3c21dac83a2d55)
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
@@ -17,21 +17,21 @@ true: annot, bin_annot
1717
# Executable xapi_script_storage
1818
<main.{native,byte}>: pkg_async_inotify
1919
<main.{native,byte}>: pkg_message_switch.async
20+
<main.{native,byte}>: pkg_ppx_deriving_rpc
21+
<main.{native,byte}>: pkg_ppx_sexp_conv
2022
<main.{native,byte}>: pkg_rpclib
21-
<main.{native,byte}>: pkg_rpclib.syntax
2223
<main.{native,byte}>: pkg_sexplib
23-
<main.{native,byte}>: pkg_sexplib.syntax
2424
<main.{native,byte}>: pkg_threads
2525
<main.{native,byte}>: pkg_xapi-storage
2626
<main.{native,byte}>: pkg_xcp
2727
<main.{native,byte}>: pkg_xcp.rrd
2828
<main.{native,byte}>: pkg_xcp.storage
2929
<*.ml{,i,y}>: pkg_async_inotify
3030
<*.ml{,i,y}>: pkg_message_switch.async
31+
<*.ml{,i,y}>: pkg_ppx_deriving_rpc
32+
<*.ml{,i,y}>: pkg_ppx_sexp_conv
3133
<*.ml{,i,y}>: pkg_rpclib
32-
<*.ml{,i,y}>: pkg_rpclib.syntax
3334
<*.ml{,i,y}>: pkg_sexplib
34-
<*.ml{,i,y}>: pkg_sexplib.syntax
3535
<*.ml{,i,y}>: pkg_threads
3636
<*.ml{,i,y}>: pkg_xapi-storage
3737
<*.ml{,i,y}>: pkg_xcp

main.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module B = Backtrace
1818
open Core.Std
1919
open Async.Std
2020

21-
open Types
21+
open Xapi_storage_script_types
2222

2323
let use_syslog = ref false
2424

@@ -161,7 +161,7 @@ module Attached_SRs = struct
161161
type state = {
162162
sr: string;
163163
uids: string list;
164-
} with sexp
164+
} [@@deriving sexp]
165165

166166
let sr_table : state String.Table.t ref = ref (String.Table.create ())
167167
let state_path = ref None

0 commit comments

Comments
 (0)