diff options
author | Erik Troan <ewt@redhat.com> | 1999-05-03 20:03:50 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-05-03 20:03:50 +0000 |
commit | 6c0a6bd2cdf0f5efaaa54fa3ae5e8dcbfd105ba7 (patch) | |
tree | 369f903bfa378bd24a001385f10859390e4a7a01 /isys/isys.c | |
parent | 4167d42e1b65de0071675b01d2cd5f3474f7d727 (diff) | |
download | anaconda-6c0a6bd2cdf0f5efaaa54fa3ae5e8dcbfd105ba7.tar.gz anaconda-6c0a6bd2cdf0f5efaaa54fa3ae5e8dcbfd105ba7.tar.xz anaconda-6c0a6bd2cdf0f5efaaa54fa3ae5e8dcbfd105ba7.zip |
*** empty log message ***
Diffstat (limited to 'isys/isys.c')
-rw-r--r-- | isys/isys.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c new file mode 100644 index 000000000..402d1e16a --- /dev/null +++ b/isys/isys.c @@ -0,0 +1,34 @@ +#include <errno.h> +#include <fcntl.h> +#include <sys/stat.h> +#include <sys/time.h> +#include <unistd.h> + +#include "Python.h" + +#include "imount.h" + +static PyObject * doMount(PyObject * s, PyObject * args); + +static PyMethodDef balkanModuleMethods[] = { + { "mount", (PyCFunction) doMount, METH_VARARGS, NULL }, + { NULL } +} ; + +static PyObject * doMount(PyObject * s, PyObject * args) { + char * fs, * device, * mntpoint; + + if (!PyArg_ParseTuple(args, "sss", &fs, &device, &mntpoint)) return NULL; + + doPwMount(device, mntpoint, fs, 0, 0, NULL, NULL); + + Py_INCREF(Py_None); + return Py_None; +} + +void init_isys(void) { + Py_InitModule("_isys", balkanModuleMethods); +} + +static void emptyDestructor(PyObject * s) { +} |