dev/vala/gvala/txr-doc.c

127 lines
3.7 KiB
C
Raw Normal View History

2012-10-14 19:04:42 +04:00
/* txr-doc.c generated by valac 0.16.1, the Vala compiler
* generated from txr-doc.vala, do not modify */
#include <glib.h>
#include <glib-object.h>
#include <stdio.h>
#define TYPE_TXR_OBJECT (txr_object_get_type ())
#define TXR_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TXR_OBJECT, TXRObject))
#define TXR_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TXR_OBJECT, TXRObjectClass))
#define IS_TXR_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TXR_OBJECT))
#define IS_TXR_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TXR_OBJECT))
#define TXR_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TXR_OBJECT, TXRObjectClass))
typedef struct _TXRObject TXRObject;
typedef struct _TXRObjectClass TXRObjectClass;
typedef struct _TXRObjectPrivate TXRObjectPrivate;
#define TYPE_TXR_DOC (txr_doc_get_type ())
#define TXR_DOC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TXR_DOC, TXRDoc))
#define TXR_DOC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TXR_DOC, TXRDocClass))
#define IS_TXR_DOC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TXR_DOC))
#define IS_TXR_DOC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TXR_DOC))
#define TXR_DOC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TXR_DOC, TXRDocClass))
typedef struct _TXRDoc TXRDoc;
typedef struct _TXRDocClass TXRDocClass;
typedef struct _TXRDocPrivate TXRDocPrivate;
struct _TXRObject {
GObject parent_instance;
TXRObjectPrivate * priv;
gint object_field;
};
struct _TXRObjectClass {
GObjectClass parent_class;
void (*copy) (TXRObject* self, TXRObject* copy);
};
struct _TXRDoc {
TXRObject parent_instance;
TXRDocPrivate * priv;
gint doc_field;
};
struct _TXRDocClass {
TXRObjectClass parent_class;
};
static gpointer txr_doc_parent_class = NULL;
GType txr_object_get_type (void) G_GNUC_CONST;
GType txr_doc_get_type (void) G_GNUC_CONST;
enum {
TXR_DOC_DUMMY_PROPERTY
};
static void txr_doc_real_copy (TXRObject* base, TXRObject* copy);
TXRDoc* txr_doc_new (void);
TXRDoc* txr_doc_construct (GType object_type);
TXRObject* txr_object_new (void);
TXRObject* txr_object_construct (GType object_type);
static void txr_doc_finalize (GObject* obj);
static void txr_doc_real_copy (TXRObject* base, TXRObject* copy) {
TXRDoc * self;
FILE* _tmp0_;
TXRObject* _tmp1_;
gint _tmp2_;
self = (TXRDoc*) base;
g_return_if_fail (copy != NULL);
_tmp0_ = stdout;
fprintf (_tmp0_, "TXRDoc:copy() called\n");
_tmp1_ = copy;
_tmp2_ = self->doc_field;
TXR_DOC (_tmp1_)->doc_field = _tmp2_;
}
TXRDoc* txr_doc_construct (GType object_type) {
TXRDoc * self = NULL;
self = (TXRDoc*) txr_object_construct (object_type);
return self;
}
TXRDoc* txr_doc_new (void) {
return txr_doc_construct (TYPE_TXR_DOC);
}
static void txr_doc_class_init (TXRDocClass * klass) {
txr_doc_parent_class = g_type_class_peek_parent (klass);
TXR_OBJECT_CLASS (klass)->copy = txr_doc_real_copy;
G_OBJECT_CLASS (klass)->finalize = txr_doc_finalize;
}
static void txr_doc_instance_init (TXRDoc * self) {
}
static void txr_doc_finalize (GObject* obj) {
TXRDoc * self;
self = TXR_DOC (obj);
G_OBJECT_CLASS (txr_doc_parent_class)->finalize (obj);
}
GType txr_doc_get_type (void) {
static volatile gsize txr_doc_type_id__volatile = 0;
if (g_once_init_enter (&txr_doc_type_id__volatile)) {
static const GTypeInfo g_define_type_info = { sizeof (TXRDocClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) txr_doc_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TXRDoc), 0, (GInstanceInitFunc) txr_doc_instance_init, NULL };
GType txr_doc_type_id;
txr_doc_type_id = g_type_register_static (TYPE_TXR_OBJECT, "TXRDoc", &g_define_type_info, 0);
g_once_init_leave (&txr_doc_type_id__volatile, txr_doc_type_id);
}
return txr_doc_type_id__volatile;
}