summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Rename most C files that contain underscore with dash.Richard W.M. Jones2012-07-191-423/+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.
* ocaml: Fix parameters to ocaml_guestfs_create.Richard W.M. Jones2012-06-061-3/+3
| | | | The first parameter (not used) is a unit, so declare it properly.
* Replace 'int' with 'size_t' passim.Richard W.M. Jones2012-03-131-2/+2
| | | | | Analyze all uses of 'int' in the code, and replace with 'size_t' where appropriate.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* ocaml: Memory leak: Free roots array along handle close path.Richard W.M. Jones2011-11-291-0/+1
|
* ocaml: Fix locking in event callbacks.Richard W.M. Jones2011-07-261-9/+27
| | | | | | | | We weren't acquiring the GC lock around some allocations, resulting in segfaults when an event callback ran at the same time as a main thread allocation or garbage collection. In particular this fixes a noticable crash in guestfs-browser.
* ocaml: Bind guestfs_last_errno.Richard W.M. Jones2011-07-161-0/+19
|
* ocaml: Add binding for guestfs_user_cancel.Richard W.M. Jones2011-07-151-0/+11
|
* New event API - OCaml bindings (RHBZ#664558).Richard W.M. Jones2011-03-151-37/+158
| | | | | | 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-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