Commit 8c64238e authored by Jean-Philippe André's avatar Jean-Philippe André

Extensions: core function dialog_ExtensionUpdate

parent 83f26349
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_dialog.h> #include <vlc_dialog.h>
#include <vlc_extensions.h>
#include <assert.h> #include <assert.h>
#include "libvlc.h" #include "libvlc.h"
...@@ -259,3 +260,23 @@ bool dialog_ProgressCancelled (dialog_progress_bar_t *dialog) ...@@ -259,3 +260,23 @@ bool dialog_ProgressCancelled (dialog_progress_bar_t *dialog)
return dialog->pf_check (dialog->p_sys); 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;
}
...@@ -102,6 +102,7 @@ demux_GetParentInput ...@@ -102,6 +102,7 @@ demux_GetParentInput
demux_PacketizerDestroy demux_PacketizerDestroy
demux_PacketizerNew demux_PacketizerNew
demux_vaControlHelper demux_vaControlHelper
dialog_ExtensionUpdate
dialog_Login dialog_Login
dialog_ProgressCancelled dialog_ProgressCancelled
dialog_ProgressCreate dialog_ProgressCreate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment