aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/22 gir link order/meson-sample.c
blob: 7c6442aa7e99874915513a6ddb2b4670cad9cb64 (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
46
47
48
#include "meson-sample.h"

#include "get-prgname.h"
#include "fake-gthread.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));

  g_print ("Message: %s\n", get_prgname_get_name ());
  g_print ("Message: %d\n", fake_gthread_fake_function ());
}