diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:00:18 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-07-19 11:00:18 +0000 |
commit | cfa02147247fa59b82eff91e2058d1488ff438e3 (patch) | |
tree | 9790d37c327bef30c210d161a42dc020b25a759b /gobject/pygobject-private.h | |
parent | fb6e18271f6dff9d1c4ef9f19019634371559585 (diff) | |
download | pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.tar.gz pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.tar.xz pygobject-cfa02147247fa59b82eff91e2058d1488ff438e3.zip |
Update, why do I even bother to update 3 different build systems?
* gobject/Makefile.am:
* setup.py:
* makefile.msc: Update, why do I even bother to update 3 different
build systems?
* gobject/: Split out GParamSpec, GMainLoop, GMainContext and
GPointer to separate files. Also remove *.h files and go back to
the old scheme (everything in pygobject.h)
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r-- | gobject/pygobject-private.h | 72 |
1 files changed, 58 insertions, 14 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index da340c7..4ab1a26 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -23,18 +23,6 @@ extern GType PY_TYPE_OBJECT; void pyg_destroy_notify (gpointer user_data); -typedef struct { - PyObject_HEAD - GMainLoop *loop; -} PyGMainLoop; -extern PyTypeObject PyGMainLoop_Type; - -typedef struct { - PyObject_HEAD - GMainContext *context; -} PyGMainContext; -extern PyTypeObject PyGMainContext_Type; - /* from pygtype.h */ extern PyTypeObject PyGTypeWrapper_Type; @@ -104,9 +92,65 @@ void pyg_register_pointer (PyObject *dict, const gchar *class_name, GType pointer_type, PyTypeObject *type); PyObject * pyg_pointer_new (GType pointer_type, gpointer pointer); +extern char * pyg_constant_strip_prefix(gchar *name, const gchar *strip_prefix); + +/* pygflags */ +typedef struct { + PyIntObject parent; + GType gtype; +} PyGFlags; + +extern PyTypeObject PyGFlags_Type; + +#define PyGFlags_Check(x) (g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_FLAGS)) + +extern PyObject * pyg_flags_add (PyObject * module, + const char * typename, + const char * strip_prefix, + GType gtype); +extern PyObject * pyg_flags_from_gtype (GType gtype, + int value); + +/* pygenum */ +#define PyGEnum_Check(x) (g_type_is_a(((PyGFlags*)x)->gtype, G_TYPE_ENUM)) + +typedef struct { + PyIntObject parent; + GType gtype; +} PyGEnum; + +extern PyTypeObject PyGEnum_Type; + +extern PyObject * pyg_enum_add (PyObject * module, + const char * typename, + const char * strip_prefix, + GType gtype); +extern PyObject * pyg_enum_from_gtype (GType gtype, + int value); + +/* pygmainloop */ + +typedef struct { + PyObject_HEAD + GMainLoop *loop; +} PyGMainLoop; + +extern PyTypeObject PyGMainLoop_Type; + +/* pygmaincontext */ + +typedef struct { + PyObject_HEAD + GMainContext *context; +} PyGMainContext; + +extern PyTypeObject PyGMainContext_Type; + +/* pygparamspec */ + extern PyTypeObject PyGParamSpec_Type; -PyObject *pyg_param_spec_new (GParamSpec *pspec); +PyObject * pyg_param_spec_new (GParamSpec *pspec); + -extern char * pyg_constant_strip_prefix(gchar *name, const gchar *strip_prefix); #endif |