g_mirror_event_first
ep = g_mirror_event_first(sc);
if (g_mirror_event_first(sc) != NULL) {
while ((ep = g_mirror_event_first(sc)) != NULL) {