|
Revision 18883, 3.3 kB
(checked in by piotras, 2 weeks ago)
|
Missed function implementation.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifdef HAVE_CONFIG_H |
|---|
| 20 |
#include "config.h" |
|---|
| 21 |
#endif |
|---|
| 22 |
|
|---|
| 23 |
#define NO_IMPORT_PYGOBJECT |
|---|
| 24 |
#include "py_midgard.h" |
|---|
| 25 |
|
|---|
| 26 |
PyTypeObject G_GNUC_INTERNAL Pymidgard_dbobject_Type = { |
|---|
| 27 |
PyObject_HEAD_INIT(NULL) |
|---|
| 28 |
0, |
|---|
| 29 |
"midgard_dbobject", |
|---|
| 30 |
sizeof(PyGObject), |
|---|
| 31 |
0, |
|---|
| 32 |
|
|---|
| 33 |
(destructor)0, |
|---|
| 34 |
(printfunc)0, |
|---|
| 35 |
(getattrfunc)0, |
|---|
| 36 |
(setattrfunc)0, |
|---|
| 37 |
(cmpfunc)0, |
|---|
| 38 |
(reprfunc)0, |
|---|
| 39 |
(PyNumberMethods*)0, |
|---|
| 40 |
(PySequenceMethods*)0, |
|---|
| 41 |
(PyMappingMethods*)0, |
|---|
| 42 |
(hashfunc)0, |
|---|
| 43 |
(ternaryfunc)0, |
|---|
| 44 |
(reprfunc)0, |
|---|
| 45 |
(getattrofunc)0, |
|---|
| 46 |
(setattrofunc)0, |
|---|
| 47 |
(PyBufferProcs*)0, |
|---|
| 48 |
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, |
|---|
| 49 |
NULL, |
|---|
| 50 |
(traverseproc)0, |
|---|
| 51 |
(inquiry)0, |
|---|
| 52 |
(richcmpfunc)0, |
|---|
| 53 |
offsetof(PyGObject, weakreflist), |
|---|
| 54 |
(getiterfunc)0, |
|---|
| 55 |
(iternextfunc)0, |
|---|
| 56 |
(struct PyMethodDef*)NULL, |
|---|
| 57 |
(struct PyMemberDef*)0, |
|---|
| 58 |
(struct PyGetSetDef*)0, |
|---|
| 59 |
NULL, |
|---|
| 60 |
NULL, |
|---|
| 61 |
(descrgetfunc)0, |
|---|
| 62 |
(descrsetfunc)0, |
|---|
| 63 |
offsetof(PyGObject, inst_dict), |
|---|
| 64 |
(initproc)0, |
|---|
| 65 |
(allocfunc)0, |
|---|
| 66 |
(newfunc)0, |
|---|
| 67 |
(freefunc)0, |
|---|
| 68 |
(inquiry)0 |
|---|
| 69 |
}; |
|---|
| 70 |
|
|---|
| 71 |
PyTypeObject py_midgard_dbobject_get_type_object(void) |
|---|
| 72 |
{ |
|---|
| 73 |
return Pymidgard_dbobject_Type; |
|---|
| 74 |
} |
|---|
| 75 |
|
|---|
| 76 |
void py_midgard_dbobject_register_class( |
|---|
| 77 |
PyObject *d, gpointer pygobject_type) |
|---|
| 78 |
{ |
|---|
| 79 |
pygobject_register_class(d, |
|---|
| 80 |
"midgard_dbobject", |
|---|
| 81 |
MIDGARD_TYPE_DBOBJECT, |
|---|
| 82 |
&Pymidgard_dbobject_Type, |
|---|
| 83 |
Py_BuildValue("(O)", pygobject_type)); |
|---|
| 84 |
|
|---|
| 85 |
pyg_set_object_has_new_constructor(MIDGARD_TYPE_DBOBJECT); |
|---|
| 86 |
} |
|---|