[Libguestfs] [PATCH 0/5] RFC: switch augeas APIs to OCaml

Pino Toscano ptoscano at redhat.com
Thu May 30 07:56:44 UTC 2019


This synchronizes the embedded ocaml-augeas copy, and reimplements the
augeas APIs using it (dropping all the C code).

The behaviour seems unchanged, although I may have not tested all the
various corner cases.

Pino Toscano (5):
  common/mlaugeas: Synchronize with latest ocaml-augeas
  daemon: fix/enhance error reporting of Augeas exceptions
  Revert "Revert "daemon: implement OptString for OCaml APIs""
  daemon: move augeas APIs to OCaml
  daemon: drop usage of C augeas library

 .gitignore                  |   1 +
 common/mlaugeas/augeas-c.c  | 190 ++++++++++++--
 common/mlaugeas/augeas.ml   |  18 +-
 common/mlaugeas/augeas.mli  |  32 ++-
 daemon/Makefile.am          |   7 +-
 daemon/aug.ml               | 143 +++++++++++
 daemon/aug_utils.ml         |  42 +++
 daemon/aug_utils.mli        |  32 +++
 daemon/augeas.c             | 493 ------------------------------------
 daemon/cleanups.c           |  11 -
 daemon/daemon-c.c           |  29 ++-
 daemon/daemon-c.h           |   1 +
 daemon/daemon.h             |  35 ---
 daemon/lvm-filter.c         |   2 -
 daemon/mount.c              |   3 +-
 daemon/mount_utils.ml       |   2 +-
 docs/C_SOURCE_FILES         |   1 -
 generator/actions_augeas.ml |  15 ++
 generator/actions_core.ml   |   2 +
 generator/daemon.ml         |  18 +-
 po/POTFILES                 |   1 -
 21 files changed, 498 insertions(+), 580 deletions(-)
 create mode 100644 daemon/aug.ml
 create mode 100644 daemon/aug_utils.ml
 create mode 100644 daemon/aug_utils.mli
 delete mode 100644 daemon/augeas.c

-- 
2.21.0




More information about the Libguestfs mailing list