Callback wrappers



Hi,

Frequently i have to make an annoying wrapper function just so
that g_slist_foreach() sees the right kind of callback function:

void draw_slist(gpointer data, gpointer user_data)
{
    obj_draw(OBJCLASS(data));
}

Is there any way around this like registering something with g_slist?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]