+void libvlc_set_user_agent (libvlc_instance_t *p_i,
+ const char *name, const char *http)
+{
+ libvlc_int_t *p_libvlc = p_i->p_libvlc_int;
+
+ var_SetString (p_libvlc, "user-agent", name);
+ if (http != NULL)
+ var_SetString (p_libvlc, "http-user-agent", http);
+}
+