[Libguestfs] [nbdkit PATCH 0/2] More language bindings for .list_exports

Eric Blake eblake at redhat.com
Tue Sep 1 13:25:16 UTC 2020


This picks up python and ocaml.  Some of our languages are lacking a
number of bindings (for example, lua and perl lack .extents, so I
didn't have anything to copy from), and I felt less comfortable with
golang and rust.  But for python and ocaml, I was able to test a
working implementation.

Eric Blake (2):
  python: Implement .list_exports and friends
  ocaml: Implement .list_exports and friends

 plugins/python/nbdkit-python-plugin.pod |  25 ++++
 tests/Makefile.am                       |   3 +
 plugins/ocaml/NBDKit.mli                |   9 ++
 plugins/ocaml/NBDKit.ml                 |  17 +++
 plugins/ocaml/example.ml                |  33 +++--
 plugins/ocaml/ocaml.c                   |  89 ++++++++++++
 plugins/python/python.c                 | 185 ++++++++++++++++++++----
 tests/test-python-export-list.sh        |  69 +++++++++
 tests/python-export-list.py             |  54 +++++++
 9 files changed, 444 insertions(+), 40 deletions(-)
 create mode 100755 tests/test-python-export-list.sh
 create mode 100644 tests/python-export-list.py

-- 
2.28.0




More information about the Libguestfs mailing list