diff options
Diffstat (limited to 'meson/test cases/frameworks/7 gnome/gir/meson-sample2.c')
-rw-r--r-- | meson/test cases/frameworks/7 gnome/gir/meson-sample2.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/7 gnome/gir/meson-sample2.c b/meson/test cases/frameworks/7 gnome/gir/meson-sample2.c new file mode 100644 index 000000000..f76bc1629 --- /dev/null +++ b/meson/test cases/frameworks/7 gnome/gir/meson-sample2.c @@ -0,0 +1,45 @@ +#include "meson-sample2.h" + +struct _MesonSample2 +{ + GObject parent_instance; +}; + +G_DEFINE_TYPE (MesonSample2, meson_sample2, G_TYPE_OBJECT) + +/** + * meson_sample2_new: + * + * Allocates a new #MesonSample2. + * + * Returns: (transfer full): a #MesonSample2. + */ +MesonSample2 * +meson_sample2_new (void) +{ + return g_object_new (MESON_TYPE_SAMPLE2, NULL); +} + +static void +meson_sample2_class_init (MesonSample2Class *klass) +{ +} + +static void +meson_sample2_init (MesonSample2 *self) +{ +} + +/** + * meson_sample2_print_message: + * @self: a #MesonSample2. + * + * Prints Hello. + * + * Returns: Nothing. + */ +void +meson_sample2_print_message (MesonSample2 *self) +{ + g_print ("Message: Hello\n"); +} |