Debian Codegraph @

vendored-meson/meson/test cases/frameworks/7 gnome/gir/dep1/dep1.c

raw
1 #include "dep1.h"
2
3 struct _MesonDep1
4 {
5 GObject parent_instance;
6 };
7
8 G_DEFINE_TYPE (MesonDep1, meson_dep1, G_TYPE_OBJECT)
9
10 /**
11 * meson_dep1_new:
12 *
13 * Allocates a new #MesonDep1.
14 *
15 * Returns: (transfer full): a #MesonDep1.
16 */
17 MesonDep1 *
18 meson_dep1_new (void)
19 {
20 return g_object_new (MESON_TYPE_DEP1, NULL);
21 }
22
23 static void
24 meson_dep1_finalize (GObject *object)
25 {
26 G_OBJECT_CLASS (meson_dep1_parent_class)->finalize (object);
27 }
28
29 static void
30 meson_dep1_class_init (MesonDep1Class *klass)
31 {
32 GObjectClass *object_class = G_OBJECT_CLASS (klass);
33
34 object_class->finalize = meson_dep1_finalize;
35 }
36
37 static void
38 meson_dep1_init (MesonDep1 *self)
39 {
40 }
41
42 /**
43 * meson_dep1_just_return_it:
44 * @dep: a #MesonDep2.
45 *
46 * Returns the #MesonDep2 that is passed in
47 *
48 * Returns: (transfer none): a #MesonDep2
49 */
50 MesonDep2*
51 meson_dep1_just_return_it (MesonDep1 *self, MesonDep2 *dep)
52 {
53 g_return_val_if_fail (MESON_IS_DEP1 (self), NULL);
54
55 return dep;
56 }