7 demo_test_static_method ();
9 //create an object instance
10 my_test
= demo_test_new ();
12 //run an instance method
13 demo_test_increment (my_test
);
15 //run an instance method with arguments
16 demo_test_add_number (my_test
, 2);
18 //run an instance method with arguments
19 demo_test_echo (my_test
, "hello from c");
21 //run a property set accessor
22 demo_test_set_title (my_test
, "set property from c");
25 //g_printf ("returned string: %s\n", demo_test_get_title (my_test));
27 //TODO: gobject-style DEMO_IS_TEST etc. macros