x = tt_message_create();
tt_message_callback_add(x,my_callback);
tt_message_user_set(x, 1, (void *)my_data);
....
Tt_callback_action
Tt_message_callback(Tt_message m, Tt_pattern p)
{
struct my_data_t *my_data;
my data = (struct my_data_t *)tt_message_user(m, 1);
...
}
|