• Thomas Guillem's avatar
    core: first cleaning of input_thread_t variables/event · 2ef7696e
    Thomas Guillem authored
    Currently, the input_thread_t is controllable by either input_Control, specific
    functions, by variables or by the 3 previous solutions.
    
    The goal of this commit is to remove variables usage when it's not necessary.
    This commit doesn't remove variables that should be used to pass users settings
    (cf.  input_ConfigVarInit).
    
    The "intf-event" callback is replaced by the new callback
    input_thread_events_cb that pass a new event: struct vlc_input_event. There can
    be only one listener: the creator of the input_thread_t. In the future, the new
    vlc input controller will receive these events and forward them to all
    listeners.
    
    In the meantime, I added input_LegacyVarInit, input_LegacyVarStop, and
    input_LegacyEvents, 3 helpers functions that reproduce the legacy variable
    behavior (transform new vlc_input_event to old intf-event events). These 3
    functions are meant to be removed for 4.0 release (when vlc input controller is
    added).
    
    For now, the playlist, the media_player, VLM and modules still use the legacy
    variables.
    2ef7696e