Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ocaml: Fix some unused parameter warnings in OCaml bindings. | Richard W.M. Jones | 2010-11-23 | 1 | -1/+1 |
| | |||||
* | ocaml: bindings to progress callback. | Richard Jones | 2010-09-01 | 1 | -2/+91 |
| | |||||
* | ocaml: Fix thread safety of strings in bindings (RHBZ#604691). | Richard Jones | 2010-06-16 | 1 | -9/+6 |
| | | | | | | | | | | | | | | | | | | | | | | There's a thread safety issue with the current OCaml bindings which is well explained in the bug report: https://bugzilla.redhat.com/show_bug.cgi?id=604691 This commit fixes the safety issue by copying strings temporarily before releasing the thread lock. Updated code looks like this: char *filename = guestfs_safe_strdup (g, String_val (filenamev)); int r; caml_enter_blocking_section (); r = guestfs_add_drive_ro (g, filename); caml_leave_blocking_section (); free (filename); if (r == -1) ocaml_guestfs_raise_error (g, "add_drive_ro"); Also included is a regression test. | ||||
* | ocaml: General improvements to generated code. | Richard W.M. Jones | 2009-11-06 | 1 | -0/+11 |
| | |||||
* | ocaml/guestfs_c.c: avoid warning about missing prototypes | Jim Meyering | 2009-08-27 | 1 | -0/+4 |
| | | | | * ocaml/guestfs_c.c (ocaml_guestfs_create, ocaml_guestfs_close): Declare. | ||||
* | ocaml/guestfs_c.c: avoid warning about initialization discarding "const" | Jim Meyering | 2009-08-27 | 1 | -1/+1 |
| | | | | * ocaml/guestfs_c.c (guestfs_custom_operations): Add a cast. | ||||
* | ocaml/guestfs_c.c avoid signed/unsigned-comparison warning | Jim Meyering | 2009-08-27 | 1 | -1/+1 |
| | | | | | * ocaml/guestfs_c.c (ocaml_guestfs_strings_val): Declare index as unsigned int. | ||||
* | always include <config.h> | Jim Meyering | 2009-08-03 | 1 | -0/+1 |
| | | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise. | ||||
* | Backport CAMLreturnT for OCaml <= 3.10 | Richard Jones | 2009-05-06 | 1 | -0/+9 |
| | |||||
* | Use safe_malloc and/or check returns from malloc (Jim Meyering). | Richard Jones | 2009-04-30 | 1 | -3/+7 |
| | |||||
* | Lots, mainly Python bindings. | Richard Jones | 2009-04-13 | 1 | -17/+8 |
| | |||||
* | Added test suite. | Richard Jones | 2009-04-11 | 1 | -0/+26 |
| | |||||
* | OCaml bindings compile. | Richard Jones | 2009-04-08 | 1 | -5/+85 |
| | |||||
* | Outline OCaml bindings. | Richard Jones | 2009-04-07 | 1 | -0/+41 |