I saw the api not very clear. I am a little confusing with the parameters of callback function. They are const struct libvlc_event_t * and void *. What are they used for? are all events register one time and differentiated by "libvlc_event_t"? Or we register what we use? I saw "libvlc_event_attach" function also has a "libvlc_event_t" parameter.
And in the callback function, what is the void* used for?