X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc%2Flibvlc.h;h=36b263feef32c270754f3b06ff778ecaeb363666;hb=7f9b7d3e31101f97831b2e62ca25dc671de14c6b;hp=d4151eb0f526590298183a0373d30589028a58b5;hpb=d3b02be6e47870bb1dff74f99bfa510fc4140646;p=vlc diff --git a/include/vlc/libvlc.h b/include/vlc/libvlc.h index d4151eb0f5..36b263feef 100644 --- a/include/vlc/libvlc.h +++ b/include/vlc/libvlc.h @@ -171,6 +171,19 @@ void libvlc_set_exit_handler( libvlc_instance_t *p_instance, VLC_PUBLIC_API void libvlc_wait( libvlc_instance_t *p_instance ); +/** + * Sets the application name. LibVLC passes this as the user agent string + * when a protocol requires it. + * + * \param p_instance LibVLC instance + * \param name human-readable application name, e.g. "FooBar player 1.2.3" + * \param http HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0" + * \version LibVLC 1.1.1 or later + */ +VLC_PUBLIC_API +void libvlc_set_user_agent( libvlc_instance_t *p_instance, + const char *name, const char *http ); + /** * Retrieve libvlc version. *