lxc.c revision c1ee94cfd3c96a0c279ebcf617156385aabb7054
734N/A#include "structmember.h"
goto error;
return result;
return NULL;
struct lxc_attach_python_payload {
if (!result) {
PyErr_Print();
int temp_env_policy;
bool parse_result;
if (!options) {
return NULL;
&stderr_obj);
if (!parse_result) {
return NULL;
if (extra_env_vars_obj)
if (extra_keep_env_obj)
if (stdin_obj) {
return NULL;
if (stdout_obj) {
return NULL;
if (stderr_obj) {
return NULL;
return options;
if (!options)
static PyObject *
char *str;
return NULL;
if (!pystr)
return NULL;
if (!str)
goto out;
out:
static PyObject *
int i, rv;
return NULL;
return NULL;
return NULL;
static PyObject *
int rv;
static PyObject *
static PyObject *
static PyObject *
int list_count = 0;
return NULL;
list_active = 0;
list_defined = 0;
if (list_count < 0) {
return NULL;
for (i = 0; i < list_count; i++) {
return list;
} Container;
&name,
static PyObject *
static PyObject *
return PyUnicode_FromString(
static PyObject *
static PyObject *
static PyObject *
static PyObject *
static PyObject *
static PyObject *
static PyObject *
return NULL;
dst_path)) {
static PyObject *
long ret;
return NULL;
return NULL;
if (!options)
return NULL;
if (ret < 0)
goto out;
if (wait) {
out:
static PyObject *
static PyObject *
static PyObject *
static PyObject *
&key))
return NULL;
static PyObject *
int flags = 0;
unsigned long newsize = 0;
&newname,
&py_hookargs))
return NULL;
if (py_hookargs) {
if (!hookargs) {
return NULL;
return NULL;
if (hookargs) {
static PyObject *
&escape))
return NULL;
static PyObject *
return NULL;
&masterfd) < 0) {
return NULL;
static PyObject *
int flags = 0;
return NULL;
if (vargs) {
if (!create_args) {
return NULL;
return NULL;
if (vargs) {
return retval;
static PyObject *
static PyObject *
static PyObject *
int len = 0;
&key))
return NULL;
if (len < 0) {
return NULL;
return PyErr_NoMemory();
return NULL;
return ret;
static PyObject *
int len = 0;
&key))
return NULL;
if (len < 0) {
return NULL;
return PyErr_NoMemory();
return NULL;
return ret;
static PyObject *
return PyUnicode_FromString(
static PyObject *
int len = 0;
&key))
return NULL;
if (len < 0) {
return NULL;
return PyErr_NoMemory();
return NULL;
return ret;
static PyObject *
if (!interfaces)
return PyTuple_New(0);
while (interfaces[i])
if (!ret)
return NULL;
while (interfaces[i]) {
if (!unicode) {
while (interfaces[i]) {
return ret;
static PyObject *
int scope = 0;
return NULL;
if (!ips)
return PyTuple_New(0);
while (ips[i])
if (!ret)
return NULL;
while (ips[i]) {
if (!unicode) {
while (ips[i]) {
return ret;
static PyObject *
return NULL;
static PyObject *
static PyObject *
return NULL;
dst_path)) {
static PyObject *
return NULL;
static PyObject *
return NULL;
static PyObject *
return NULL;
static PyObject *
&path))
return NULL;
static PyObject *
&timeout))
return NULL;
static PyObject *
int retval = 0;
int ret = 0;
return NULL;
if (retval < 0) {
return NULL;
static PyObject *
&name))
return NULL;
static PyObject *
int snap_count = 0;
if (snap_count < 0) {
return NULL;
for (i = 0; i < snap_count; i++) {
return list;
static PyObject *
return NULL;
static PyObject *
int init_useinit = 0, i = 0;
&vargs))
return NULL;
if (!init_args) {
return NULL;
if (vargs) {
return retval;
static PyObject *
static PyObject *
static PyObject *
return NULL;
/* Function/Properties list */
NULL},
NULL},
NULL},
NULL},
NULL},
NULL},
NULL},
PyInit__lxc(void)
PyObject* m;
PyObject* d;
return NULL;
if (m == NULL)
return NULL;
d = PyModule_GetDict(m);
#define PYLXC_EXPORT_CONST(c) \