1
#include "../libssts/SimpleTypeSystem.h"
3
#include "test_macros.h"
6
test_callback_test_func1 (SObject * obj, spointer user_data) {
11
test_callback_test_func2 (SObject * obj, spointer user_data) {
22
static SCallbackEntry * callback_entries[] = {NULL,};
24
int test_callback (void) {
27
SObject * obj = s_object_new ();
29
callback_entries[TEST_CALLBACK1] =
30
s_callback_entry_new ("test1",
31
test_callback_test_func1,
34
callback_entries[TEST_CALLBACK2] =
35
s_callback_entry_new ("test2",
36
test_callback_test_func2,
39
s_object_install_callbacks (obj, TEST_CALLBACK_END ,callback_entries);