aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/28 gir link order 2/meson-sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/frameworks/28 gir link order 2/meson-sample.c')
-rw-r--r--meson/test cases/frameworks/28 gir link order 2/meson-sample.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/28 gir link order 2/meson-sample.c b/meson/test cases/frameworks/28 gir link order 2/meson-sample.c
new file mode 100644
index 000000000..d743b2d8b
--- /dev/null
+++ b/meson/test cases/frameworks/28 gir link order 2/meson-sample.c
@@ -0,0 +1,42 @@
+#include "meson-sample.h"
+
+struct _MesonSample {
+ GObject parent_instance;
+};
+
+G_DEFINE_TYPE (MesonSample, meson_sample, G_TYPE_OBJECT)
+
+/**
+ * meson_sample_new:
+ *
+ * Allocates a new #MesonSample.
+ *
+ * Returns: (transfer full): a #MesonSample.
+ */
+MesonSample *
+meson_sample_new (void)
+{
+ return g_object_new (MESON_TYPE_SAMPLE, NULL);
+}
+
+static void
+meson_sample_class_init (MesonSampleClass *klass)
+{
+}
+
+static void
+meson_sample_init (MesonSample *self)
+{
+}
+
+/**
+ * meson_sample_print_message:
+ * @self: a #MesonSample.
+ *
+ * Prints a message.
+ */
+void
+meson_sample_print_message (MesonSample *self)
+{
+ g_return_if_fail (MESON_IS_SAMPLE (self));
+}