[3.0] vlc_modules: add an API to get the shortcut to use with a module
3.0 version of !5671 to fix #28691
The review should be done on this branch as depending on what is possible for 3.0 we will do it on 4.0 (or not). In particular I'm not sure we can add an API entry to libvlccore in VLC 3. Or maybe I'm doing it wrong.
A plugin may contain multiple modules. They all have the same first shortcut which is the VLC_MODULE_NAME [1]. Then if there's a shortcut (or more) it's further in the list.
module_get_object() cannot differentiate between the modules inside a plugin. It should keep returning the name of the VLC_MODULE_NAME. But we need another API to get the proper shortcut to use.
Plus a small backport to remove a warning during build.