Commit Graph

6 Commits

Author SHA1 Message Date
Michael Liebmann
0200e1dec0 CLuaInstance: Add some CComponentsHeader functions
- Set Lua api version to 1.38


Origin commit data
------------------
Commit: 8a61c3bfcd
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-21 (Thu, 21 Jan 2016)
2016-01-21 17:42:07 +01:00
Michael Liebmann
b23ab6dafb CLuaInstance: Precise error message for obsolete hide() parameter
- Supplement for commit 8882b8913b


Origin commit data
------------------
Commit: f12e49e720
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 14:43:59 +01:00
Stefan Seyfried
27699ff590 luainstance: fix build with newer GCC
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Commit: e85f64d733
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-13 (Sun, 13 Dec 2015)
2015-12-31 11:44:04 +01:00
Michael Liebmann
708d737000 CLuaInstance: Add class for using libcurl
- Add simple download function
 - Set Lua api version to 1.24

	parameter	typ		default
	----------------------------------------
	url		string		required
	o, outputfile	string		when empty then save to string
					as secund return value
	A, userAgent	string		empty
	v, verbose	bool		false
	s, silent	bool		false
	connectTimeout	number		20
	ipv4		bool		false
	ipv6		bool		false
	useProxy	bool		true (default)
	followRedir	bool		true
	maxRedirs	number		20

Example:
	-- simplest program call:
	-- ----------------------
	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com", o="/tmp/test.txt"}
	if ret ~= CURL.OK then
		print("Error: " .. data)
	end

	-- or --

	local curl = curl.new()
	local ret, data = curl:download{url="http://example.com"}
	if ret == CURL.OK then
		-- downloaded data
		print(data)
		..
	else
		print("Error: " .. data)
	end


Origin commit data
------------------
Commit: 4f9158c2a9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-13 (Sun, 13 Dec 2015)
2015-12-13 23:36:52 +01:00
Michael Liebmann
3e1f7eb408 CLuaInstance: Use CLuaVideo for video, CLuaMisc for misc functions
- The old version of the video and misc functions is deprecated
 but still valid


Origin commit data
------------------
Commit: 83176835e3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-12 (Sat, 12 Dec 2015)

Origin message was:
------------------
CLuaInstance: Use CLuaVideo for video, CLuaMisc for misc functions

 - The old version of the video and misc functions is deprecated
  but still valid
2015-12-12 10:42:28 +01:00
Michael Liebmann
0d9f930ab1 CLuaInstance: Move types, definitions & functions from
luainstance.cpp/.h to luainstance_helpers.cpp/.h

 - No api changes, code only


Origin commit data
------------------
Commit: 1238b0c677
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-12 (Sat, 12 Dec 2015)
2015-12-12 10:42:28 +01:00