]> git.sesse.net Git - vlc/commitdiff
Hide interaction object layout
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 12 Jan 2009 20:42:30 +0000 (22:42 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 12 Jan 2009 20:57:01 +0000 (22:57 +0200)
include/vlc_interface.h
modules/gui/macosx/interaction.m
modules/gui/qt4/dialogs/interaction.cpp
src/interface/interface.h

index 3053a7a169680f0e89075629f7505457479892b5..f24633bc0f668d1bc9663118111923bd3f8358e7 100644 (file)
@@ -273,20 +273,6 @@ enum
     INTERACT_DESTROY
 };
 
-/**
- * This structure contains the active interaction dialogs, and is
- * used by the manager
- */
-struct interaction_t
-{
-    VLC_COMMON_MEMBERS
-
-    int                         i_dialogs;      ///< Number of dialogs
-    interaction_dialog_t      **pp_dialogs;     ///< Dialogs
-    intf_thread_t              *p_intf;         ///< Interface to use
-    int                         i_last_id;      ///< Last attributed ID
-};
-
 /***************************************************************************
  * Exported symbols
  ***************************************************************************/
index c62e36c4fcb93f38ac78b9ac9b0faac0074d3854..0f3238f42cc486173e6eb06f8d56c2eeb4a21835 100644 (file)
 - (void)sheetDidEnd:(NSWindow *)o_sheet returnCode:(int)i_return
     contextInfo:(void *)o_context
 {
-    vlc_object_lock( p_dialog->p_interaction );
+    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
     if( i_return == NSAlertDefaultReturn )
     {
         p_dialog->i_return = DIALOG_OK_YES;
         p_dialog->i_return = DIALOG_CANCELLED;
     }
     p_dialog->i_status = ANSWERED_DIALOG;
-    vlc_object_unlock( p_dialog->p_interaction );
+    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
 }
 
 -(void)updateDialog
 - (IBAction)cancelAndClose:(id)sender
 {
     /* tell the core that the dialog was cancelled in a yes/no-style dialogue */
-    vlc_object_lock( p_dialog->p_interaction );
+    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
     p_dialog->i_return = DIALOG_CANCELLED;
     p_dialog->i_status = ANSWERED_DIALOG;
-    vlc_object_unlock( p_dialog->p_interaction );
+    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
     msg_Dbg( p_intf, "dialog cancelled" );
 }
 
 {
     /* tell core that the user wishes to cancel the dialogue
      * Use this function if cancelling is optionally like in the progress-dialogue */
-    vlc_object_lock( p_dialog->p_interaction );
+    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
     p_dialog->b_cancelled = true;
-    vlc_object_unlock( p_dialog->p_interaction );
+    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
     msg_Dbg( p_intf, "cancelling dialog, will close it later on" );
 }
 
 - (IBAction)okayAndClose:(id)sender
 {
     msg_Dbg( p_intf, "running okayAndClose" );
-    vlc_object_lock( p_dialog->p_interaction );
+    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
     if( p_dialog->i_flags == DIALOG_LOGIN_PW_OK_CANCEL )
     {
         p_dialog->psz_returned[0] = strdup( [[o_auth_login_fld stringValue] UTF8String] );
         p_dialog->psz_returned[0] = strdup( [[o_input_fld stringValue] UTF8String] );
     p_dialog->i_return = DIALOG_OK_YES;
     p_dialog->i_status = ANSWERED_DIALOG;
-    vlc_object_unlock( p_dialog->p_interaction );
+    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
     msg_Dbg( p_intf, "dialog acknowledged" );
 }
 
index 7c5920f36df96a5f0aa696cffbdf0bcad9e7c01f..030c63965b5a05d4afea3cbd0b78399a4009d0cf 100644 (file)
@@ -232,7 +232,7 @@ void InteractionDialog::otherB()
 
 void InteractionDialog::Finish( int i_ret )
 {
-    vlc_object_lock( p_dialog->p_interaction );
+    vlc_object_lock( (vlc_object_t *)(p_dialog->p_interaction) );
 
     if( p_dialog->i_flags & DIALOG_LOGIN_PW_OK_CANCEL )
     {
@@ -252,6 +252,6 @@ void InteractionDialog::Finish( int i_ret )
         p_dialog->b_cancelled = true;
 
     hide();
-    vlc_object_unlock( p_dialog->p_interaction );
+    vlc_object_unlock( (vlc_object_t *)(p_dialog->p_interaction) );
 }
 
index 6401ccdd7f7db99a1c64473f5f4c0544f14e2c38..6c256ca2c9a091ae2c48dad4db6b8c2b8d6179dc 100644 (file)
  * Interaction
  **********************************************************************/
 
+/**
+ * This structure contains the active interaction dialogs, and is
+ * used by the manager
+ */
+struct interaction_t
+{
+    VLC_COMMON_MEMBERS
+
+    int                         i_dialogs;      ///< Number of dialogs
+    interaction_dialog_t      **pp_dialogs;     ///< Dialogs
+    intf_thread_t              *p_intf;         ///< Interface to use
+    int                         i_last_id;      ///< Last attributed ID
+};
+
 interaction_t * interaction_Init( libvlc_int_t *p_libvlc );
 void interaction_Destroy( interaction_t * );