1
#include "test-objects.h"
2
#include "test-interfaces.h"
5
test_song_dbus_get_title (TestSong *song,
9
*title = g_strdup ("Hello, Goodbye");
13
#include "test-song-glue.h"
16
test_song_say_hello (TestHello *hello)
18
return g_strdup ("Hello, hello...");
22
test_song_init (TestSong *song)
27
test_song_hello_init (TestHelloIface *iface)
29
iface->say_hello = test_song_say_hello;
34
test_song_class_init (TestSongClass *klass)
36
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (klass),
37
&dbus_glib_test_song_object_info);
40
G_DEFINE_TYPE_WITH_CODE (TestSong, test_song, G_TYPE_OBJECT,
41
G_IMPLEMENT_INTERFACE (TEST_TYPE_HELLO, test_song_hello_init))
44
test_beatles_song_say_goodbye (TestGoodbye *goodbye)
46
return g_strdup ("I don't know why you say goodbye, I say hello.");
50
test_beatles_song_init (TestBeatlesSong *song)
55
test_beatles_song_goodbye_init (TestGoodbyeIface *iface)
57
iface->say_goodbye = test_beatles_song_say_goodbye;
61
test_beatles_song_class_init (TestBeatlesSongClass *klass)
65
G_DEFINE_TYPE_WITH_CODE (TestBeatlesSong, test_beatles_song, TEST_TYPE_SONG,
66
G_IMPLEMENT_INTERFACE (TEST_TYPE_GOODBYE, test_beatles_song_goodbye_init))
70
test_beatles_song_new (void)
72
return TEST_BEATLES_SONG (g_object_new (TEST_TYPE_BEATLES_SONG, NULL));