1 /* -*- Mode: C; c-set-style: python; c-basic-offset: 4 -*-
2 * pyglib - Python bindings for GLib toolkit.
3 * Copyright (C) 1998-2003 James Henstridge
4 * 2004-2008 Johan Dahlin
6 * glibmodule.c: wrapper for the glib library.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
29 #include "pygoptioncontext.h"
30 #include "pygoptiongroup.h"
33 /* ---------------- glib module functions -------------------- */
35 static PyMethodDef _glib_functions[] = {
37 (PyCFunction)pyglib_spawn_async, METH_VARARGS|METH_KEYWORDS,
38 "spawn_async(argv, envp=None, working_directory=None,\n"
39 " flags=0, child_setup=None, user_data=None,\n"
40 " standard_input=None, standard_output=None,\n"
41 " standard_error=None) -> (pid, stdin, stdout, stderr)\n"
43 "Execute a child program asynchronously within a glib.MainLoop()\n"
44 "See the reference manual for a complete reference.\n" },
48 PYGLIB_MODULE_START(_glib, "_glib")
50 PyObject *d = PyModule_GetDict(module);
52 pyglib_spawn_register_types(d);
53 pyglib_option_context_register_types(d);
54 pyglib_option_group_register_types(d);