diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 16:17:59 +0100 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-21 17:09:28 +0100 |
commit | 52c07daf1fa3a5d17957cc3e3d0d75c65b268b57 (patch) | |
tree | c403eaccd92fe0a9ee6df26338c01c77837e1b4d /tests/doctool/doc-examples-obj.h | |
parent | bd983994b9a63639fda836a06f4102776b9e1480 (diff) | |
download | gobject-introspection-52c07daf1fa3a5d17957cc3e3d0d75c65b268b57.tar.gz |
g-ir-doc-tool: Create a GIR file specific for testing doc generation
This will also serve as a reference of the syntax that is currently
supported by g-ir-doc-tool.
Diffstat (limited to 'tests/doctool/doc-examples-obj.h')
-rw-r--r-- | tests/doctool/doc-examples-obj.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/tests/doctool/doc-examples-obj.h b/tests/doctool/doc-examples-obj.h new file mode 100644 index 00000000..a4437cb4 --- /dev/null +++ b/tests/doctool/doc-examples-obj.h @@ -0,0 +1,54 @@ +/* doc-examples-obj.h */ + +#ifndef _DOC_EXAMPLES_OBJ_H +#define _DOC_EXAMPLES_OBJ_H + +#include <glib-object.h> + +G_BEGIN_DECLS + +#define DOC_EXAMPLES_TYPE_OBJ doc_examples_obj_get_type() + +#define DOC_EXAMPLES_OBJ(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + DOC_EXAMPLES_TYPE_OBJ, DocExamplesObj)) + +#define DOC_EXAMPLES_OBJ_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + DOC_EXAMPLES_TYPE_OBJ, DocExamplesObjClass)) + +#define DOC_EXAMPLES_IS_OBJ(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + DOC_EXAMPLES_TYPE_OBJ)) + +#define DOC_EXAMPLES_IS_OBJ_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + DOC_EXAMPLES_TYPE_OBJ)) + +#define DOC_EXAMPLES_OBJ_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + DOC_EXAMPLES_TYPE_OBJ, DocExamplesObjClass)) + +typedef struct _DocExamplesObj DocExamplesObj; +typedef struct _DocExamplesObjClass DocExamplesObjClass; + + +struct _DocExamplesObj +{ + GObject parent; + + +}; + +struct _DocExamplesObjClass +{ + GObjectClass parent_class; +}; + +GType doc_examples_obj_get_type (void) G_GNUC_CONST; + +DocExamplesObj *doc_examples_obj_new (void); + +G_END_DECLS + +#endif /* _DOC_EXAMPLES_OBJ_H */ |