summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c.c
Commit message (Collapse)AuthorAgeFilesLines
* ocaml: Fix some unused parameter warnings in OCaml bindings.Richard W.M. Jones2010-11-231-1/+1
|
* ocaml: bindings to progress callback.Richard Jones2010-09-011-2/+91
|
* ocaml: Fix thread safety of strings in bindings (RHBZ#604691).Richard Jones2010-06-161-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. Jones2009-11-061-0/+11
|
* ocaml/guestfs_c.c: avoid warning about missing prototypesJim Meyering2009-08-271-0/+4
| | | | * ocaml/guestfs_c.c (ocaml_guestfs_create, ocaml_guestfs_close): Declare.
* ocaml/guestfs_c.c: avoid warning about initialization discarding "const"Jim Meyering2009-08-271-1/+1
| | | | * ocaml/guestfs_c.c (guestfs_custom_operations): Add a cast.
* ocaml/guestfs_c.c avoid signed/unsigned-comparison warningJim Meyering2009-08-271-1/+1
| | | | | * ocaml/guestfs_c.c (ocaml_guestfs_strings_val): Declare index as unsigned int.
* always include <config.h>Jim Meyering2009-08-031-0/+1
| | | | | | * ocaml/guestfs_c.c: Include <config.h>. * examples/to-xml.c: Likewise. * examples/hello.c: Likewise.
* Backport CAMLreturnT for OCaml <= 3.10Richard Jones2009-05-061-0/+9
|
* Use safe_malloc and/or check returns from malloc (Jim Meyering).Richard Jones2009-04-301-3/+7
|
* Lots, mainly Python bindings.Richard Jones2009-04-131-17/+8
|
* Added test suite.Richard Jones2009-04-111-0/+26
|
* OCaml bindings compile.Richard Jones2009-04-081-5/+85
|
* Outline OCaml bindings.Richard Jones2009-04-071-0/+41