]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/applescript.h
macosx: fixes a memory leak.
[vlc] / modules / gui / macosx / applescript.h
index e47907cdd6da10e35a355483f05629ba975a0732..990d44990e6ee3ded040782410a2586684fb7543 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * applescript.h: MacOS X AppleScript support
  *****************************************************************************
- * Copyright (C) 2002-2003 the VideoLAN team
+ * Copyright (C) 2002-2003, 2005, 2007 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
@@ -21,6 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#import <Cocoa/Cocoa.h>
+
 /*****************************************************************************
  * VLGetURLScriptCommand interface
  *****************************************************************************/
 *****************************************************************************/
 @interface NSApplication(ScriptSupport)
 
-- (BOOL) scriptFullscreenMode;
-- (void) setScriptFullscreenMode: (BOOL) mode;
+- (BOOL)scriptFullscreenMode;
+- (void)setScriptFullscreenMode: (BOOL)mode;
+
+- (double)audioVolume;
+- (void)setAudioVolume: (double)mode;
+
+- (int)currentTime;
+- (void)setCurrentTime: (int)mode;
 
+- (int) durationOfCurrentItem;
+- (NSString*) pathOfCurrentItem;
+- (NSString*) nameOfCurrentItem;
+
+@end