You have to create this function, otherwise the compilation will crash. This fonction is called after the loop wich display the window content.
void dg_end(void *data, int id);