]> git.sesse.net Git - vlc/blobdiff - modules/gui/minimal_macosx/macosx.c
modules: use the new add_shortcut capability (add multiple shortcuts at a time).
[vlc] / modules / gui / minimal_macosx / macosx.c
index 69c813e7e5c2967008e4c0eebbab0d77f368b514..c3afae0c7989037a26aa45f6087ac68e6e1e68b2 100644 (file)
@@ -34,7 +34,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 
 /*****************************************************************************
@@ -50,22 +50,23 @@ void CloseVideoGL ( vlc_object_t * );
  * Module descriptor
  *****************************************************************************/
 
-vlc_module_begin();
+vlc_module_begin ()
     /* Minimal interface. see intf.m */
-    set_shortname( "Minimal Macosx" );
-    add_shortcut( "minimal_macosx" );
-    set_description( N_("Minimal Mac OS X interface") );
-    set_capability( "interface", 50 );
-    set_callbacks( OpenIntf, CloseIntf );
-    set_category( CAT_INTERFACE );
-    set_subcategory( SUBCAT_INTERFACE_MAIN );
+    set_shortname( "Minimal Macosx" )
+    add_shortcut( "minimal_macosx", "miosx" )
+    set_description( N_("Minimal Mac OS X interface") )
+    set_capability( "interface", 50 )
+    set_callbacks( OpenIntf, CloseIntf )
+    set_category( CAT_INTERFACE )
+    set_subcategory( SUBCAT_INTERFACE_MAIN )
 
-    add_submodule();
+    add_submodule ()
         /* Will be loaded even without interface module. see voutgl.m */
-        set_description( N_("Minimal Mac OS X OpenGL video output (opens a borderless window)") );
-        set_capability( "opengl provider", 50 );
-        set_category( CAT_VIDEO);
-        set_subcategory( SUBCAT_VIDEO_VOUT );
-        set_callbacks( OpenVideoGL, CloseVideoGL );
-vlc_module_end();
+        add_shortcut( "minimal_macosx", "miosx" )
+        set_description( N_("Minimal Mac OS X OpenGL video output (opens a borderless window)") )
+        set_capability( "opengl provider", 50 )
+        set_category( CAT_VIDEO)
+        set_subcategory( SUBCAT_VIDEO_VOUT )
+        set_callbacks( OpenVideoGL, CloseVideoGL )
+vlc_module_end ()