dep1.c 949 B

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