summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c.h
Commit message (Collapse)AuthorAgeFilesLines
* build: Rename most C files that contain underscore with dash.Richard W.M. Jones2012-07-191-40/+0
| | | | | | | This is just code motion. Some files cannot be renamed. Notably rpcgen input and output files must not contain dash characters, else rpcgen breaks.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* ocaml: Don't include guestfs-internal.h directly.Richard W.M. Jones2012-01-181-2/+0
| | | | | | However since the OCaml bindings use guestfs_safe_strdup and guestfs_safe_memdup we need to export those two (in the private functions section) from <guestfs.h>.
* New event API - OCaml bindings (RHBZ#664558).Richard W.M. Jones2011-03-151-1/+1
| | | | | | The functions set_progress_callback and clear_progress_callback have been removed, and replaced with a complete mechanism for setting and deleting general-purpose events.
* ocaml: Fix some unused parameter warnings in OCaml bindings.Richard W.M. Jones2010-11-231-0/+10
|
* ocaml: Fix thread safety of strings in bindings (RHBZ#604691).Richard Jones2010-06-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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/+2
|
* Use safe_malloc and/or check returns from malloc (Jim Meyering).Richard Jones2009-04-301-1/+1
|
* Added test suite.Richard Jones2009-04-111-0/+2
|
* OCaml bindings compile.Richard Jones2009-04-081-1/+3
|
* Outline OCaml bindings.Richard Jones2009-04-071-0/+24