|
|
|
@ -23,7 +23,7 @@ |
|
|
|
--[==========================================================================[ |
|
|
|
Example use: |
|
|
|
|
|
|
|
require "host" |
|
|
|
local host = require "host" |
|
|
|
h = host.host() |
|
|
|
|
|
|
|
-- Bypass any authentication |
|
|
|
@ -61,8 +61,6 @@ Example use: |
|
|
|
For complete examples see existing VLC Lua interface modules (ie cli.lua) |
|
|
|
--]==========================================================================] |
|
|
|
|
|
|
|
module("host",package.seeall) |
|
|
|
|
|
|
|
status = { init = 0, read = 1, write = 2, password = 3 } |
|
|
|
client_type = { net = 1, stdio = 2, fifo = 3, telnet = 4 } |
|
|
|
|
|
|
|
@ -365,3 +363,13 @@ function host() |
|
|
|
}) |
|
|
|
return h |
|
|
|
end |
|
|
|
|
|
|
|
local hostfuncs = { |
|
|
|
host = host, |
|
|
|
status = status, |
|
|
|
client_type = client_type, |
|
|
|
is_flag_set = is_flag_set, |
|
|
|
} |
|
|
|
|
|
|
|
_G.host = hostfuncs |
|
|
|
return hostfuncs |
|
|
|
|