Commit Graph

88 Commits

Author SHA1 Message Date
vanhofen
d97a3de34d helpers.chh/h: add some helper functions
Partial cherry pick from:
https://bitbucket.org/neutrino-images/ni-neutrino-hd

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 43c7e0ed09
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-11 (Thu, 11 Aug 2016)



------------------
This commit was generated by Migit
2017-09-14 12:14:41 +02:00
Michael Liebmann
be9e1e020b src/system/helpers.cpp: Add function readLink()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c182785e2
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-22 (Wed, 22 Feb 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2017-02-22 06:24:48 +01:00
Stefan Seyfried
5f0e41af6a system/helpers: disable GetWidth4FB_HW_ACC()
...will be removed later


Origin commit data
------------------
Branch: ni/coolstream
Commit: e1e2052edb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-14 (Tue, 14 Feb 2017)



------------------
This commit was generated by Migit
2017-02-14 20:01:55 +01:00
Stefan Seyfried
70cbcb6bb5 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)


Origin commit data
------------------
Branch: ni/coolstream
Commit: e490f84ea8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)



------------------
This commit was generated by Migit
2017-02-07 17:23:42 +01:00
Stefan Seyfried
b6a9ec8038 helpers: add run_pty() function
This runs an external command inside a pty. Running inside a pty,
external commands using stdio(3) will disable stdout buffering when
running from a terminal, which is often desirable.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 85bb568d02
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)



------------------
This commit was generated by Migit
2017-01-29 21:27:45 +01:00
Jacek Jendrzej
f8ea2e5650 helpers: 201103L have to_string
Origin commit data
------------------
Branch: ni/coolstream
Commit: 80f7d0a299
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-10-24 (Mon, 24 Oct 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-10-24 13:41:23 +02:00
Stefan Seyfried
f3c729bab3 system/helpers: allow to build with c++11 compilers
Origin commit data
------------------
Branch: ni/coolstream
Commit: ae345d11d3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-10-24 09:55:32 +02:00
Stefan Seyfried
0ed93d8edb helpers.cpp: include fontrenderer.h
if Font class is used, the header should be included, too :-)


Origin commit data
------------------
Branch: ni/coolstream
Commit: 645da64839
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)



------------------
This commit was generated by Migit
2016-10-24 09:46:05 +02:00
Michael Liebmann
d214c7736c CFileHelpers: Rework FileBuf handling
FileBuf: Reserve memory only when it is needed (copyFile)
copyFile: Reserve for small files, only as much memory as is required


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6a9c08ae90
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-06 (Tue, 06 Sep 2016)



------------------
This commit was generated by Migit
2016-09-06 11:32:41 +02:00
Michael Liebmann
b96a91a581 CFileHelpers::removeDir: Better error message
- No error when directory does not exist


Origin commit data
------------------
Branch: ni/coolstream
Commit: ff9a71cd36
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-06 (Tue, 06 Sep 2016)



------------------
This commit was generated by Migit
2016-09-06 11:32:41 +02:00
Michael Liebmann
0bfd3c22d6 lua_filehelpers.cpp: Add lua script function 'mkdir()'
- Set Lua api version to 1.52


Origin commit data
------------------
Branch: ni/coolstream
Commit: 906e9a2156
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-04 (Sun, 04 Sep 2016)



------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
ac62dcec55 lua_filehelpers.cpp: Add lua script function 'rmdir()'
- Set Lua api version to 1.51


Origin commit data
------------------
Branch: ni/coolstream
Commit: 631708f380
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-04 (Sun, 04 Sep 2016)



------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
daeab68ae7 Use DebugInfo functions in CFileHelpers::cp / lua cp
Origin commit data
------------------
Branch: ni/coolstream
Commit: de07369d68
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-04 (Sun, 04 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
09777711fe CFileHelpers: Add DebugInfo functions for displaying error messages..
..in lua script functions


Origin commit data
------------------
Branch: ni/coolstream
Commit: 83a902d524
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-04 (Sun, 04 Sep 2016)



------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
d8e156217f helpers.cpp: Add cp() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5198a13282
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
d6304e8ef7 CFileHelpers::copyFile: Rewrite mode handling
Origin commit data
------------------
Branch: ni/coolstream
Commit: 64b5d36c52
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
0d3818862d helpers.cpp: Add itoa() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 38470a8a80
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-09-05 23:46:01 +02:00
Michael Liebmann
8ef5e4b610 Fix commit c3a7bcfd5b
- Use indexes for font parameter in formatDeleteMsg() & cutString()


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d5edc29e6
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-08-13 (Sat, 13 Aug 2016)



------------------
This commit was generated by Migit
2016-08-13 16:01:00 +02:00
Michael Liebmann
c3a7bcfd5b src/system/helpers.cpp: Add cutString() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 71674d0f8a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-08-12 (Fri, 12 Aug 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-08-12 19:22:48 +02:00
vanhofen
9a918ab785 movieinfo: more cleanup; use htmlEntityDecode from helpers.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 22fcc8fe4d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-11 (Thu, 11 Aug 2016)

Origin message was:
------------------
- movieinfo: more cleanup; use htmlEntityDecode from helpers.cpp

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-08-11 12:32:00 +02:00
Michael Liebmann
41784d58c7 src/system/helpers.cpp: Add function Lang2ISO639_1()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 53ef02ad2f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-03-04 (Fri, 04 Mar 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-03-04 14:15:50 +01:00
Michael Liebmann
dbc216d4ae helpers.cpp: Add function SetWith4FB_HW_ACC()
align for hw blit on apollo/kronos hw


Origin commit data
------------------
Branch: ni/coolstream
Commit: 2c23f339d3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)

Origin message was:
------------------
helpers.cpp: Add function SetWith4FB_HW_ACC()

 align for hw blit on apollo/kronos hw


------------------
This commit was generated by Migit
2016-01-26 09:51:48 +01:00
Jacek Jendrzej
8ccea0a934 fix compil fix change 64 to 32
Origin commit data
------------------
Branch: ni/coolstream
Commit: 322b58a598
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-27 (Sun, 27 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-12-27 13:58:32 +01:00
Jacek Jendrzej
86cc4a8fb9 some gcc5 compil fixes
Origin commit data
------------------
Branch: ni/coolstream
Commit: ddb3c15d4b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-26 (Sat, 26 Dec 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-12-26 17:03:42 +01:00
Michael Liebmann
b59fb9cda4 helpers.cpp: Fix sscanf format string in getJFFS2MountPoint (THX Jacek)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1d992a6d13
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-11-07 (Sat, 07 Nov 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-11-07 10:56:55 +01:00
[CST] Bas
55acf87eac CFileHelpers::createDir: Fix return value
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0180d59111
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2015-10-18 (Sun, 18 Oct 2015)



------------------
This commit was generated by Migit
2015-10-18 21:39:54 +02:00
Michael Liebmann
26e82ad0cf Apollo/Kronos: Display backup options for 'var' and 'root1'...
...only if are mounted.

- Using /proc/mounts to find correct mountpoint for backup


Origin commit data
------------------
Branch: ni/coolstream
Commit: 885f13f6b0
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-09-22 (Tue, 22 Sep 2015)



------------------
This commit was generated by Migit
2015-09-22 13:41:14 +02:00
Jacek Jendrzej
367e9f3b6e fix Werror=format
Origin commit data
------------------
Branch: ni/coolstream
Commit: a34b32043a
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-08-22 (Sat, 22 Aug 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-08-22 15:27:47 +02:00
Jacek Jendrzej
b0e25e796f for debug filesystem
Origin commit data
------------------
Branch: ni/coolstream
Commit: c06e5b1407
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-08-21 (Fri, 21 Aug 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-08-21 22:04:04 +02:00
Thilo Graf
819cbeea7d CFileHelpers: rework methode getDirSize(), makes it work recursively
Origin commit data
------------------
Branch: ni/coolstream
Commit: a185ad34d4
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-07 (Sat, 07 Feb 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:40:12 +02:00
Thilo Graf
60cec1c1f6 CFileHelpers: add function getDirSize()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1b095e725e
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-07 (Sat, 07 Feb 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:40:12 +02:00
Thilo Graf
8031b9fce0 system/helpers.cpp: add return value for mySleep()
Origin commit data
------------------
Branch: ni/coolstream
Commit: c9dd6fac39
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:40:09 +02:00
Thilo Graf
1cc532eea3 system/helpers.cpp: getNowTimeStr(), use thread save localtime version
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3538077821
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:40:09 +02:00
Thilo Graf
6d07c52a86 system/helpers.cpp: add more possible exexutable paths
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6fc8d1bb9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-24 (Mon, 24 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:39:57 +02:00
Thilo Graf
bdc60375ab system/helpers: remove mkdirhier(); gui/themes: use createDir()
This is a partial revert of
picked commit e06663874d.
There were two methods, createDir() and mkdirhier() for the same purpose.
We don't need it twice.
btw: existing function createDir() fixed


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1dcfc52a33
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-28 (Fri, 28 Nov 2014)



------------------
This commit was generated by Migit
2015-03-29 22:39:48 +02:00
Stefan Seyfried
2ea2d02303 helpers: add "backtick" function for shell-like command
Origin commit data
------------------
Branch: ni/coolstream
Commit: f607fe5fbe
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-02-09 13:47:32 +01:00
Stefan Seyfried
552334b652 picview/png, my_popen: fix -Wclobbered warnings
Origin commit data
------------------
Branch: ni/coolstream
Commit: fe5a6ec111
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-01-26 (Mon, 26 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-02-04 12:35:51 +01:00
Jacek Jendrzej
5293f9470a fix some possible errors
Origin commit data
------------------
Branch: ni/coolstream
Commit: d5d6c4de62
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-11-06 (Thu, 06 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-11-06 14:40:44 +01:00
martii
7470abe911 experimental yt cache (currently no gui integration)
Conflicts:
	src/gui/moviebrowser.cpp
	src/gui/movieinfo.cpp
	src/system/Makefile.am


Origin commit data
------------------
Branch: ni/coolstream
Commit: 70e5e66327
Author: martii <m4rtii@gmx.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)



------------------
This commit was generated by Migit
2014-09-24 19:50:34 +04:00
martii
e06663874d system/helpers: add mkdirhier(); gui/themes: use mkdirhier()
Conflicts:
	src/system/helpers.h


Origin commit data
------------------
Branch: ni/coolstream
Commit: 431657e35d
Author: martii <m4rtii@gmx.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)



------------------
This commit was generated by Migit
2014-09-12 15:59:21 +04:00
martii
fd5475886a gui/dboxinfo: localize (partially based on patch from Benny -- thanks!)
Conflicts:
	src/gui/dboxinfo.cpp


Origin commit data
------------------
Branch: ni/coolstream
Commit: 742760dbd3
Author: martii <m4rtii@gmx.de>
Date: 2014-05-24 (Sat, 24 May 2014)



------------------
This commit was generated by Migit
2014-09-11 18:12:06 +04:00
[CST] Focus
4eb5179286 neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii
Origin commit data
------------------
Branch: ni/coolstream
Commit: 420af7a4dc
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-05 (Fri, 05 Sep 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-05 17:49:11 +04:00
vanhofen
2e874500a6 helpers.cpp: add shortened strftime() function
taken from martiis neutrino-mp


Origin commit data
------------------
Branch: ni/coolstream
Commit: 672257906e
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-05-29 (Thu, 29 May 2014)

Origin message was:
------------------
- helpers.cpp: add shortened strftime() function

 taken from martiis neutrino-mp


------------------
This commit was generated by Migit
2014-05-29 22:26:30 +02:00
[CST] Focus
fee715d7d9 system/helpers.cpp: add split_config_string helper
Origin commit data
------------------
Branch: ni/coolstream
Commit: bef1b79bed
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-23 (Wed, 23 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-04-23 17:44:16 +04:00
Michael Liebmann
45c6c54fb7 src/system/helpers.cpp - htmlEntityDecode(): Add various html codes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 409df1b809
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-03-02 (Sun, 02 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-03-03 20:20:57 +01:00
Stefan Seyfried
7032385fd7 my_popen: fix indentation
Origin commit data
------------------
Branch: ni/coolstream
Commit: 04fd8c277c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-03-01 (Sat, 01 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-03-01 21:17:56 +01:00
Michael Liebmann
04530b5968 src/system/helpers.cpp: Add htmlEntityDecode() for decode html string
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0028ad0d9b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-26 (Wed, 26 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-26 10:11:40 +01:00
Michael Liebmann
710f57bc83 src/system/helpers.cpp: Add str_replace() function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 21f7c930ae
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-26 (Wed, 26 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-26 10:11:40 +01:00
Jacek Jendrzej
be4bf0d96b wakeup_hdd: -fix warning -add mode to open
Origin commit data
------------------
Branch: ni/coolstream
Commit: f1c7e9002e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-02-18 (Tue, 18 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-18 14:59:11 +01:00
[CST] Focus
98748d9f51 system/helpers.cpp: change wakeup_hdd function to use hdd_get_standby/hdd_flush
Origin commit data
------------------
Branch: ni/coolstream
Commit: 10eb8869d6
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-02-12 (Wed, 12 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-12 16:47:28 +04:00