#include <vlc_common.h>
#include <vlc_dialog.h>
+#include <vlc_extensions.h>
#include <assert.h>
#include "libvlc.h"
#undef dialog_Login
/**
* Requests a username and password through the user interface.
- * @param obj the VLC object requesting credential informations
+ * @param obj the VLC object requesting credential information
* @param username a pointer to the specified username [OUT]
* @param password a pointer to the specified password [OUT]
* @param title title for the dialog
return dialog->pf_check (dialog->p_sys);
}
+#undef dialog_ExtensionUpdate
+int dialog_ExtensionUpdate (vlc_object_t *obj, extension_dialog_t *dialog)
+{
+ assert (obj);
+ assert (dialog);
+
+ vlc_object_t *dp = dialog_GetProvider(obj);
+ if (!dp)
+ {
+ msg_Warn (obj, "Dialog provider is not set, can't update dialog '%s'",
+ dialog->psz_title);
+ return VLC_EGENERIC;
+ }
+
+ // Signaling the dialog provider
+ int ret = var_SetAddress (dp, "dialog-extension", dialog);
+
+ vlc_object_release (dp);
+ return ret;
+}