]> git.sesse.net Git - vlc/commitdiff
lua: add missing documentation for scopes
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 26 Sep 2014 21:04:14 +0000 (23:04 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 26 Sep 2014 21:04:14 +0000 (23:04 +0200)
share/Makefile.am
share/lua/meta/README.txt [new file with mode: 0644]

index 105ed0cbe2030ce3916d56bde2366c7d666df1af..8c7c36c9ac9114b7de4fbc79a1dbba8b6127e38f 100644 (file)
@@ -160,6 +160,7 @@ nobase_doc_DATA = \
        lua/extensions/README.txt \
        lua/intf/README.txt \
        lua/intf/dumpmeta.lua \
+       lua/meta/README.txt \
        lua/meta/art/README.txt \
        lua/meta/art/01_googleimage.lua \
        lua/meta/fetcher/README.txt \
@@ -198,6 +199,7 @@ EXTRA_DIST += \
        lua/intf/modules/host.lua \
        lua/intf/modules/httprequests.lua \
        lua/intf/telnet.lua \
+       lua/meta/README.txt \
        lua/meta/art/README.txt \
        lua/meta/art/02_frenchtv.lua \
        lua/meta/art/03_lastfm.lua \
diff --git a/share/lua/meta/README.txt b/share/lua/meta/README.txt
new file mode 100644 (file)
index 0000000..7742503
--- /dev/null
@@ -0,0 +1,24 @@
+## Generic instructions about VLC Lua meta scripts.
+$Id$
+
+There is 3 types of Lua meta modules: art, fetcher and reader.
+See their own README.txt for documentation.
+
+See lua/README.txt for generic documentation about Lua usage in VLC.
+
+## API
+
+VLC Lua meta modules should define a descriptor function:
+  * descriptor(): returns a table with information about the module.
+    This table has the following member:
+      .scope: Search scope of the script. Can be "network" or "local".
+              and defaults to "network".
+              "local" scripts are considered fast and processed first.
+              "network" scripts are considered slow and processed in a
+              second pass only if policy allows it.
+
+    Example:
+    function descriptor()
+        return { scope="network" }
+    end
+