5 static PyObject * _uuid_generate(PyObject *self, PyObject *args)
9 if (!PyArg_ParseTuple(args, "")) return NULL;
11 uuid_unparse(u, uuid);
12 return Py_BuildValue("s", uuid);
15 static PyMethodDef _uuid_methods[] = {
16 {"generate", _uuid_generate, METH_VARARGS, "Generate UUID"},
20 void inite2fsprogs_uuid(void)
22 (void) Py_InitModule("e2fsprogs_uuid", _uuid_methods);