summaryrefslogtreecommitdiffstats
path: root/python/guestfs-py-byhand.c
Commit message (Collapse)AuthorAgeFilesLines
* New APIs: guestfs_create_flags, guestfs_parse_environment,Richard W.M. Jones2012-10-151-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | guestfs_parse_environment_list. Add a new function for creating a handle: guestfs_h *guestfs_create_flags (unsigned flags [, ...]); This variant lets you supply flags and extra arguments, although extra arguments are not used at the moment. Of particular interest is the ability to separate the creation of the handle from the parsing of environment variables like LIBGUESTFS_DEBUG. guestfs_create does both together, which prevents us from propagating errors from parsing environment variables back to the caller (guestfs_create has always printed any errors on stderr and then just ignored them). If you are interested in these errors, you can now write: g = guestfs_create_flags (GUESTFS_CREATE_NO_ENVIRONMENT); if (!g) exit (EXIT_FAILURE); r = guestfs_parse_environment (g); if (!r) exit (EXIT_FAILURE); Also you can *omit* the call to guestfs_parse_environment, which creates a handle unaffected by the environment (which was not possible before). This commit also includes new (backwards compatible) changes to the OCaml, Perl, Python, Ruby and Java constructors that let you use the flags.
* syntax: Remove include <assert.h> where assert is not used.Richard W.M. Jones2012-09-151-1/+0
| | | | Found by 'make syntax-check'.
* Tempus fugit.Richard W.M. Jones2012-01-181-1/+1
| | | | Update all copyright dates to 2012.
* python: Memory leak: Free roots array along handle close path.Richard W.M. Jones2011-11-291-0/+1
|
* python: Fixes for Python 3 (RHBZ#750889).Richard W.M. Jones2011-11-021-1/+1
| | | | | | | | | | | | | These fixes allow libguestfs bindings to work with Python 3 (tested with Python 3.2) You can select which Python you compile against by doing: PYTHON=python ./configure && make && make check or: PYTHON=python3 ./configure && make && make check
* python: Ensure Python GIL state is correct during callback.Richard W.M. Jones2011-04-221-0/+8
| | | | This updates commit 2cac52000a6a96a583af72e289a4296c596047d5.
* python: Implement new event API.Richard W.M. Jones2011-04-221-0/+155
| | | | | This implements set_event_callback and delete_event_callback so that Python programs can use the new event mechanism.
* python: Rearrange C files for bindings.Richard W.M. Jones2011-04-221-0/+69
Move the hand-written functions into two new files: guestfs-py.h and guestfs-py-byhand.c This is just code motion.