diff options
author | Hasan Wan <hasan.wan@intel.com> | 2012-05-25 16:47:13 +0800 |
---|---|---|
committer | Hasan Wan <hasan.wan@intel.com> | 2012-05-28 16:06:22 +0800 |
commit | 1ddee039e66b9c1feb2129a1904e60760e0e8fc3 (patch) | |
tree | 84a3b12d0f839c6a2ef702eb02f3288c91cf5902 /glib/pygsource.h | |
parent | f7d643cbb2184346b6f8d26091eb7eb38c6bbfe1 (diff) | |
download | pygobject2-1ddee039e66b9c1feb2129a1904e60760e0e8fc3.tar.gz pygobject2-1ddee039e66b9c1feb2129a1904e60760e0e8fc3.tar.bz2 pygobject2-1ddee039e66b9c1feb2129a1904e60760e0e8fc3.zip |
Updated with Tizen:Base source codes
Diffstat (limited to 'glib/pygsource.h')
-rw-r--r-- | glib/pygsource.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/glib/pygsource.h b/glib/pygsource.h new file mode 100644 index 0000000..bf2c673 --- /dev/null +++ b/glib/pygsource.h @@ -0,0 +1,39 @@ +/* -*- Mode: C; c-basic-offset: 4 -*- + * pyglib - Python bindings for GLib toolkit. + * Copyright (C) 1998-2003 James Henstridge + * 2004-2008 Johan Dahlin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + * USA + */ + +#ifndef __PYG_SOURCE_H__ +#define __PYG_SOURCE_H__ + +extern PyTypeObject PyGSource_Type; +extern PyTypeObject PyGIdle_Type; +extern PyTypeObject PyGTimeout_Type; +extern PyTypeObject PyGPollFD_Type; + +typedef struct +{ + PyObject_HEAD + GPollFD pollfd; + PyObject *fd_obj; +} PyGPollFD; + +void pyglib_source_register_types(PyObject *d); + +#endif /* __PYG_SOURCE_H__ */ |