Commit bdbd8588 authored by Jean-Philippe André's avatar Jean-Philippe André

Extensions: fix compilation for Windoze

Windows already registers CreateDialog as a macro
parent 8f055856
......@@ -55,7 +55,7 @@ ExtensionsDialogProvider::ExtensionsDialogProvider( intf_thread_t *_p_intf,
var_AddCallback( p_intf, "dialog-extension", DialogCallback, NULL );
CONNECT( this, SignalDialog( extension_dialog_t* ),
this, UpdateDialog( extension_dialog_t* ) );
this, UpdateExtDialog( extension_dialog_t* ) );
}
ExtensionsDialogProvider::~ExtensionsDialogProvider()
......@@ -65,20 +65,21 @@ ExtensionsDialogProvider::~ExtensionsDialogProvider()
/** Create a dialog
* Note: Lock on p_dialog->lock must be held. */
ExtensionDialog* ExtensionsDialogProvider::CreateDialog( extension_dialog_t *p_dialog )
ExtensionDialog* ExtensionsDialogProvider::CreateExtDialog(
extension_dialog_t *p_dialog )
{
ExtensionDialog *dialog = new ExtensionDialog( p_intf,
p_extensions_manager,
p_dialog );
p_dialog->p_sys_intf = (void*) dialog;
CONNECT( dialog, destroyDialog( extension_dialog_t* ),
this, DestroyDialog( extension_dialog_t* ) );
this, DestroyExtDialog( extension_dialog_t* ) );
return dialog;
}
/** Destroy a dialog
* Note: Lock on p_dialog->lock must be held. */
int ExtensionsDialogProvider::DestroyDialog( extension_dialog_t *p_dialog )
int ExtensionsDialogProvider::DestroyExtDialog( extension_dialog_t *p_dialog )
{
assert( p_dialog );
ExtensionDialog *dialog = ( ExtensionDialog* ) p_dialog->p_sys_intf;
......@@ -92,7 +93,8 @@ int ExtensionsDialogProvider::DestroyDialog( extension_dialog_t *p_dialog )
/**
* Update/Create/Destroy a dialog
**/
ExtensionDialog* ExtensionsDialogProvider::UpdateDialog( extension_dialog_t *p_dialog )
ExtensionDialog* ExtensionsDialogProvider::UpdateExtDialog(
extension_dialog_t *p_dialog )
{
assert( p_dialog );
......@@ -107,7 +109,7 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateDialog( extension_dialog_t *p_d
vlc_mutex_lock( &p_dialog->lock );
if( !p_dialog->b_kill && !dialog )
{
dialog = CreateDialog( p_dialog );
dialog = CreateExtDialog( p_dialog );
dialog->setVisible( !p_dialog->b_hide );
}
else if( !p_dialog->b_kill && dialog )
......@@ -119,7 +121,7 @@ ExtensionDialog* ExtensionsDialogProvider::UpdateDialog( extension_dialog_t *p_d
}
else if( p_dialog->b_kill )
{
DestroyDialog( p_dialog );
DestroyExtDialog( p_dialog );
}
vlc_cond_signal( &p_dialog->cond );
vlc_mutex_unlock( &p_dialog->lock );
......@@ -137,7 +139,7 @@ void ExtensionsDialogProvider::ManageDialog( extension_dialog_t *p_dialog )
if( !extMgr->isUnloading() )
emit SignalDialog( p_dialog ); // Safe because we signal Qt thread
else
UpdateDialog( p_dialog ); // This is safe, we're already in Qt thread
UpdateExtDialog( p_dialog ); // This is safe, we're already in Qt thread
}
/**
......
......@@ -54,9 +54,9 @@ private:
extensions_manager_t *p_extensions_manager;
private slots:
ExtensionDialog* CreateDialog( extension_dialog_t *p_dialog );
int DestroyDialog( extension_dialog_t *p_dialog );
ExtensionDialog* UpdateDialog( extension_dialog_t *p_dialog );
ExtensionDialog* CreateExtDialog( extension_dialog_t *p_dialog );
int DestroyExtDialog( extension_dialog_t *p_dialog );
ExtensionDialog* UpdateExtDialog( extension_dialog_t *p_dialog );
public:
ExtensionsDialogProvider( intf_thread_t *p_intf,
......
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