]> git.sesse.net Git - vlc/commitdiff
Extensions: buildsystem
authorJean-Philippe André <jpeg@videolan.org>
Tue, 10 Nov 2009 17:31:58 +0000 (18:31 +0100)
committerJean-Philippe André <jpeg@videolan.org>
Sun, 24 Jan 2010 15:05:15 +0000 (16:05 +0100)
Let's compile!

modules/misc/lua/Modules.am
modules/misc/lua/libs.h
modules/misc/lua/vlc.c
modules/misc/lua/vlc.h

index 22aa829bd557a603a8ab2766d262ef075e2017b7..3c9f459b413d2dbe1449efb22d55721e16159db1 100644 (file)
@@ -1,4 +1,6 @@
 SOURCES_lua = \
+       extension.c \
+       extension_thread.c \
        intf.c \
        meta.c \
        demux.c \
@@ -8,6 +10,7 @@ SOURCES_lua = \
        libs/acl.c \
        libs/configuration.c \
        libs/gettext.c \
+       libs/dialog.c \
        libs/httpd.c \
        libs/input.c \
        libs/input.h \
index da99a58d5ddfe8fcf50d04e3d1674d77baef346d..60f6ccfafa40a3413d973d93704380e138e5eff6 100644 (file)
@@ -26,7 +26,7 @@
 
 void luaopen_acl( lua_State * );
 void luaopen_config( lua_State * );
-void luaopen_volume( lua_State * );
+void luaopen_dialog( lua_State *, void * );
 void luaopen_httpd( lua_State * );
 void luaopen_input( lua_State * );
 void luaopen_msg( lua_State * );
index 6173b7c52be10bb568032bcd97c7a1a476ac71f8..2d156eea9e8d9860bc4c83bfcbaa370b5ff13d41 100644 (file)
@@ -106,6 +106,12 @@ vlc_module_begin ()
         add_string( "lua-config", "", NULL,
                     CONFIG_TEXT, CONFIG_LONGTEXT, false )
         set_callbacks( Open_LuaIntf, Close_LuaIntf )
+
+    add_submodule ()
+        set_shortname( "Lua Extension" )
+        add_shortcut( "luaextension" )
+        set_capability( "extension", 1 )
+        set_callbacks( Open_Extension, Close_Extension )
 vlc_module_end ()
 
 /*****************************************************************************
index 1e23233b4d08e1d103fcb5e27242e0a9d4c03425..6aa6b661b993d208a9a20b9a972f5e4165f6bc08 100644 (file)
@@ -54,6 +54,9 @@ void Close_LuaPlaylist( vlc_object_t * );
 int Open_LuaIntf( vlc_object_t * );
 void Close_LuaIntf( vlc_object_t * );
 
+int Open_Extension( vlc_object_t * );
+void Close_Extension( vlc_object_t * );
+
 
 /*****************************************************************************
  * Lua debug