search for: pymodule_addintmacro

Displaying 1 result from an estimated 1 matches for "pymodule_addintmacro".

2016 May 05
1
[PATCH] python: use constants instead of raw values
...s-py-byhand.c b/python/guestfs-py-byhand.c index cf8576f..9e2debf 100644 --- a/python/guestfs-py-byhand.c +++ b/python/guestfs-py-byhand.c @@ -37,6 +37,13 @@ static PyObject **get_all_event_callbacks (guestfs_h *g, size_t *len_rtn); +void +guestfs_int_py_extend_module (PyObject *module) +{ + PyModule_AddIntMacro(module, GUESTFS_CREATE_NO_ENVIRONMENT); + PyModule_AddIntMacro(module, GUESTFS_CREATE_NO_CLOSE_ON_EXIT); +} + PyObject * guestfs_int_py_create (PyObject *self, PyObject *args) { diff --git a/python/guestfs-py.h b/python/guestfs-py.h index da5f483..f2246a6 100644 --- a/python/guestfs-py.h +++ b...