X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fintf.h;h=718a83bdab36dab8468b8d4ebe648b493d19efdf;hb=473924674c85c5f5c11a5c2e0564ad6cc8f7d566;hp=91f7730ef67cc0be346cc352e62251d4bd9f39a9;hpb=6a5fc04ec3b5e2e52a28c43bfac4d3b8587422f2;p=vlc diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h index 91f7730ef6..718a83bdab 100644 --- a/modules/gui/macosx/intf.h +++ b/modules/gui/macosx/intf.h @@ -46,7 +46,6 @@ /***************************************************************************** * Local prototypes. *****************************************************************************/ -int ExecuteOnMainThread( id target, SEL sel, void * p_arg ); unsigned int CocoaKeyToVLC( unichar i_key ); #define VLCIntf [[VLCMain sharedInstance] getIntf] @@ -67,10 +66,6 @@ unsigned int CocoaKeyToVLC( unichar i_key ); struct intf_sys_t { NSAutoreleasePool * o_pool; - NSPort * o_sendport; - - /* the current input */ - input_thread_t * p_input; /* special actions */ bool b_mute; @@ -92,13 +87,13 @@ struct intf_sys_t /* The messages window */ msg_subscription_t * p_sub; - }; /***************************************************************************** * VLCMain interface *****************************************************************************/ @class AppleRemote; +@class VLCInformation; @interface VLCMain : NSObject { intf_thread_t *p_intf; /* The main intf object */ @@ -111,8 +106,7 @@ struct intf_sys_t id o_bookmarks; /* VLCBookmarks */ id o_embedded_list; /* VLCEmbeddedList*/ id o_interaction_list; /* VLCInteractionList*/ - id o_sfilters; /* VLCsFilters */ - id o_info; /* VLCInformation */ + VLCInformation * o_info; /* VLCInformation */ #ifdef UPDATE_CHECK id o_update; /* VLCUpdate */ #endif @@ -123,7 +117,6 @@ struct intf_sys_t BOOL nib_wizard_loaded; /* wizard nibfile */ BOOL nib_extended_loaded; /* extended nibfile */ BOOL nib_bookmarks_loaded; /* bookmarks nibfile */ - BOOL nib_sfilters_loaded; /* sfilters nibfile */ BOOL nib_prefs_loaded; /* preferences nibfile */ BOOL nib_update_loaded; /* update nibfile */ BOOL nib_info_loaded; /* information panel nibfile */ @@ -303,10 +296,14 @@ struct intf_sys_t NSSize o_size_with_playlist; - NSThread * manageThread; - int i_lastShownVolume; + /* the manage thread */ + pthread_t manage_thread; + + /* The timer that update the interface */ + NSTimer * interfaceTimer; + AppleRemote * o_remote; BOOL b_remote_button_hold; /* true as long as the user holds the left,right,plus or minus on the remote control */ } @@ -364,7 +361,6 @@ struct intf_sys_t - (IBAction)showWizard:(id)sender; - (IBAction)showExtended:(id)sender; - (IBAction)showBookmarks:(id)sender; -- (IBAction)showSFilters:(id)sender; - (IBAction)viewAbout:(id)sender; - (IBAction)showLicense:(id)sender;