/* * gsfmodule.c * * Copyright (C) 2002-2003 Jon K Hellan (hellan@acm.org) * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2.1 of the GNU Lesser General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 * USA */ /* * Python bindings for gnome extensions to libgsf. */ #include extern PyMethodDef pygsfgnome_functions[]; extern DL_EXPORT(void) initgnome (void); DL_EXPORT(void) initgnome (void) { PyObject *m, *d; init_pygobject (); m = Py_InitModule ((char *) "gsf.gnome", pygsfgnome_functions); d = PyModule_GetDict (m); pygsfgnome_register_classes (d); if (PyErr_Occurred ()) { Py_FatalError ((char *) "can't initialise module gsf.gnome"); } }