You have to create this function, otherwise the compilation will crash. This fonction is called before the loop wich display the window content.
void *dg_init(dg_window_t *window);