summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/7 gnome/gir/meson-sample2.c
blob: f76bc1629126fcb164604d1bd0e7165fdc012a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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");
}