[PATCH v1 0/5] OCaml bindings for hvm_param_get and xc_evtchn_status

Edwin Török posted 5 patches 1 year, 3 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
.editorconfig                       | 20 +++++++
tools/ocaml/.clang-format           |  9 ++++
tools/ocaml/libs/xb/xenbus_stubs.c  |  1 +
tools/ocaml/libs/xc/xenctrl.ml      | 58 +++++++++++++++++++++
tools/ocaml/libs/xc/xenctrl.mli     | 60 +++++++++++++++++++++
tools/ocaml/libs/xc/xenctrl_stubs.c | 81 +++++++++++++++++++++++++++++
6 files changed, 229 insertions(+)
create mode 100644 .editorconfig
create mode 100644 tools/ocaml/.clang-format
[PATCH v1 0/5] OCaml bindings for hvm_param_get and xc_evtchn_status
Posted by Edwin Török 1 year, 3 months ago
Add bindings to xc_evtchn_status and hvm_param_get, useful for xenopsd
and for recovery from failed live updates.

.editorconfig helps me format the source code with the desired Xen
coding style (now that the reindent patch has switched it to spaces as
desired by the Xen project).
If you don't have an editor set up to use editorconfig this is a no-op.

.clang-format is an experiment for the OCaml subtree in slowly moving
its code to be closer to the Xen coding style. There is no Xen coding
style as such in clang-format, this takes GNU as a base and tweaks it to
be as close to CODING_STYLE as possible (there is just one different in
handling of do/while as far as I can tell).
It should be an improvement over the current situation where the OCaml C
bindings do not follow Xen coding style, and further bindings added that
follow the style of the code around them would not follow it either.
It doesn't yet reformat anything with it, just allows someone that
submits patches to use it if desired (e.g. on new code).

Edwin Török (5):
  CODING-STYLE: add .editorconfig to clarify indentation uses spaces
  tools/ocaml/libs/xc: add binding to xc_evtchn_status
  tools/ocaml/libs/xc: add hvm_param_get binding
  tools/ocaml/libs/xb: add missing stdint.h
  CODING_STYLE: add .clang-format

 .editorconfig                       | 20 +++++++
 tools/ocaml/.clang-format           |  9 ++++
 tools/ocaml/libs/xb/xenbus_stubs.c  |  1 +
 tools/ocaml/libs/xc/xenctrl.ml      | 58 +++++++++++++++++++++
 tools/ocaml/libs/xc/xenctrl.mli     | 60 +++++++++++++++++++++
 tools/ocaml/libs/xc/xenctrl_stubs.c | 81 +++++++++++++++++++++++++++++
 6 files changed, 229 insertions(+)
 create mode 100644 .editorconfig
 create mode 100644 tools/ocaml/.clang-format

-- 
2.34.1