#include <Python.h>

/* stub out functionality for now */
static PyObject*
really_call_ftw(PyObject* self, PyObject* args)
{
	/* this function has received BORROWED references to 'self' and 'args',
	 * so we can safely ignore them. */

	/* we are required to return a new reference. We could do the following:
	 *
	 *   Py_INCREF(Py_None);
	 *   return Py_None;
	 *
	 * Note that Py_None must be treated like any other object in terms of
	 * reference counts!
	 *
	 * The following macro takes care of that for us.
	 */
	Py_RETURN_NONE;
}

static PyMethodDef FtwMethods[] = {
	{"ftw", really_call_ftw, METH_VARARGS, "Traverse a directory structure."},
	/* module name, function, argument passing style, docstring */
	{NULL, NULL, 0, NULL}
};

PyMODINIT_FUNC
initftw3()
{
	Py_InitModule("ftw3", FtwMethods);
}
