Terminal *term = (Terminal *)frontend; struct gui_data *inst = (struct gui_data *)term->frontend;
struct gui_data *inst = (struct gui_data *)frontend;
void logevent(void *frontend, char *string){    Terminal *term = (Terminal *)frontend;    struct gui_data *inst = (struct gui_data *)term->frontend;    log_eventlog(inst->logctx, string);    logevent_dlg(inst->eventlogstuff, string);}