diff --git a/dune-project b/dune-project index 4049bb7..abc367e 100644 --- a/dune-project +++ b/dune-project @@ -1,3 +1,2 @@ -(lang dune 1.0) +(lang dune 1.8) (name libusb) -(version 2018-07-12-1) \ No newline at end of file diff --git a/dune-workspace b/dune-workspace deleted file mode 100644 index e69de29..0000000 diff --git a/lib/libusb.mli b/lib/libusb.mli index 72f3e03..ca37abe 100644 --- a/lib/libusb.mli +++ b/lib/libusb.mli @@ -6,12 +6,11 @@ I wrote this alternate binding: - in order to experiment more in depth with {{:https://github.com/ocamllabs/ocaml-ctypes} Ctypes}; - - and because I needed something more portable than {{:https://github.com/letoh/ocaml-usb} ocaml-usb}: this one is working on Windows. *) + - and because I needed something more portable than {{:https://github.com/letoh/ocaml-usb} ocaml-usb}: this one is working on Windows, which was not the case of ocaml-usb when I started this project. *) include module type of T - -(** {1 Getting more of {! error}s} *) +(** {1 Getting more of errors} *) val string_of_error: error -> string @@ -44,7 +43,7 @@ val init_libusb: unit -> (unit, error) result (** This function must be called before calling any other libusb function. *) val exit_libusb: unit -> unit -(** Should be called after closing all open devices and before your application +(** Should be called after closing all opened devices and before your application terminates. *) val get_version: unit -> version @@ -65,7 +64,7 @@ val unref_device: device -> unit (** [unref_device d] decrements the reference count of [d]. If the decrement operation causes the reference count to reach zero, the - device shall be destroyed by libusb C library. *) + device shall be destroyed by libusb C library. *) val unref_devices: device list -> unit (** [unref_devices l == List.iter unref_device l] *) diff --git a/libusb.opam b/libusb.opam index a114ee5..70f1f6c 100644 --- a/libusb.opam +++ b/libusb.opam @@ -1,15 +1,11 @@ -opam-version: "1.2" -version: "2018-07-12-1" +opam-version: "2.0" +version: "2019-03-21-1" maintainer: "Matthieu Dubuget " authors: "Matthieu Dubuget " - +synopsis: "Binding to a tiny part of http://libusb.info libusb" homepage: "none" bug-reports: "Matthieu Dubuget " - -build: [ - [ "dune" "build" "-p" name "-j" jobs ] -] - +build: [ [ "dune" "build" "-p" name "-j" jobs ]] license: "Not yet decided" depends: [ "dune" {build}