TangoCash
f8b623178e
fix webif xml encoding, part 2
2018-03-31 13:07:36 +02:00
Jacek Jendrzej
7ad4a0e6cc
Merge branch 'master' into pu/mp
2017-10-02 13:56:25 +02:00
Stefan Seyfried
2f39081708
helpers/readFile: limit memory allocations
2017-10-02 13:43:57 +02:00
M. Liebmann
600d215aaf
Merge branch 'master' into pu/mp
2017-09-19 23:21:21 +02:00
M. Liebmann
05d8ed4105
helpers.cpp: Add new functions
...
- readFile()
- parseJsonFromFile()
- parseJsonFromString()
parseJsonFromString() and parseJsonFromFile() use Json::CharReader
instead of the obsolete function Json::Reader
2017-09-19 23:20:39 +02:00
M. Liebmann
bdfccc2f22
Merge branch 'master' into pu/mp
2017-09-14 15:37:58 +02:00
M. Liebmann
020936acbe
system/helpers.cpp: Add cstr_replace()
...
- This is a faster C version of str_replace()
2017-09-14 15:37:36 +02:00
Jacek Jendrzej
2ebb47f519
Merge branch 'master' into pu/mp
2017-09-14 13:54:04 +02:00
svenhoefer
43c7e0ed09
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 >
2017-09-14 12:14:41 +02:00
Stefan Seyfried
5c95139207
Merge remote-tracking branch 'tuxbox/master'
2017-02-22 08:44:53 +01:00
M. Liebmann
0c182785e2
src/system/helpers.cpp: Add function readLink()
2017-02-22 06:24:48 +01:00
Stefan Seyfried
e1e2052edb
system/helpers: disable GetWidth4FB_HW_ACC()
...
...will be removed later
2017-02-14 20:01:55 +01:00
Stefan Seyfried
c95601630a
system/helpers: disable GetWidth4FB_HW_ACC()
...
...will be removed later
2017-02-14 00:15:11 +01:00
Stefan Seyfried
e490f84ea8
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)
2017-02-07 17:23:42 +01:00
Stefan Seyfried
63b6efd1f5
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)
2017-02-05 13:05:07 +01:00
Stefan Seyfried
85bb568d02
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.
2017-01-29 21:27:45 +01:00
Stefan Seyfried
9d78d7072d
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.
2017-01-28 23:17:03 +01:00
Stefan Seyfried
2c92d112d0
Merge remote-tracking branch 'tuxbox/master'
2016-11-12 18:06:26 +01:00
Jacek Jendrzej
80f7d0a299
helpers: 201103L have to_string
2016-10-24 13:41:23 +02:00
Stefan Seyfried
ae345d11d3
system/helpers: allow to build with c++11 compilers
2016-10-24 09:55:32 +02:00
Stefan Seyfried
645da64839
helpers.cpp: include fontrenderer.h
...
if Font class is used, the header should be included, too :-)
2016-10-24 09:46:05 +02:00
Stefan Seyfried
3684680cb2
system/helpers: allow to build with c++11 compilers
2016-10-22 12:23:09 +02:00
Stefan Seyfried
1d5cb34616
helpers.cpp: include fontrenderer.h
...
if Font class is used, the header should be included, too :-)
2016-10-22 12:22:06 +02:00
Stefan Seyfried
13ab1ebc8a
Merge remote-tracking branch 'tuxbox/master'
...
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
M. Liebmann
6a9c08ae90
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
2016-09-06 11:32:41 +02:00
M. Liebmann
ff9a71cd36
CFileHelpers::removeDir: Better error message
...
- No error when directory does not exist
2016-09-06 11:32:41 +02:00
M. Liebmann
906e9a2156
lua_filehelpers.cpp: Add lua script function 'mkdir()'
...
- Set Lua api version to 1.52
2016-09-05 23:46:01 +02:00
M. Liebmann
631708f380
lua_filehelpers.cpp: Add lua script function 'rmdir()'
...
- Set Lua api version to 1.51
2016-09-05 23:46:01 +02:00
M. Liebmann
de07369d68
Use DebugInfo functions in CFileHelpers::cp / lua cp
2016-09-05 23:46:01 +02:00
M. Liebmann
83a902d524
CFileHelpers: Add DebugInfo functions for displaying error messages..
...
..in lua script functions
2016-09-05 23:46:01 +02:00
M. Liebmann
5198a13282
helpers.cpp: Add cp() function
2016-09-05 23:46:01 +02:00
M. Liebmann
64b5d36c52
CFileHelpers::copyFile: Rewrite mode handling
2016-09-05 23:46:01 +02:00
M. Liebmann
38470a8a80
helpers.cpp: Add itoa() function
2016-09-05 23:46:01 +02:00
M. Liebmann
0d5edc29e6
Fix commit 71674d0f8a
...
- Use indexes for font parameter in formatDeleteMsg() & cutString()
2016-08-13 16:01:00 +02:00
M. Liebmann
71674d0f8a
src/system/helpers.cpp: Add cutString() function
2016-08-12 19:22:48 +02:00
svenhoefer
22fcc8fe4d
- movieinfo: more cleanup; use htmlEntityDecode from helpers.cpp
2016-08-11 12:32:00 +02:00
M. Liebmann
53ef02ad2f
src/system/helpers.cpp: Add function Lang2ISO639_1()
2016-03-04 14:15:50 +01:00
M. Liebmann
2c23f339d3
helpers.cpp: Add function SetWith4FB_HW_ACC()
...
align for hw blit on apollo/kronos hw
2016-01-26 09:51:48 +01:00
Stefan Seyfried
be8db2598f
helpers: fix printf type warning
...
There is no portable way to do this without a cast, and since
64bit filesystem magic numbers exist, cast to an at least 64bit
sized type (unsigned long long).
2015-12-28 16:21:58 +01:00
Stefan Seyfried
b837d8697b
Merge remote-tracking branch 'uncool/cst-next'
2015-12-28 16:15:14 +01:00
Jacek Jendrzej
322b58a598
fix compil fix change 64 to 32
2015-12-27 13:58:32 +01:00
Jacek Jendrzej
ddb3c15d4b
some gcc5 compil fixes
2015-12-26 17:03:42 +01:00
Stefan Seyfried
eeee5bacab
Merge remote-tracking branch 'uncool/cst-next'
...
This need buildfixes and some functional updates...
2015-12-13 17:41:55 +01:00
M. Liebmann
1d992a6d13
helpers.cpp: Fix sscanf format string in getJFFS2MountPoint (THX Jacek)
2015-11-07 10:56:55 +01:00
[CST] Bas
0180d59111
CFileHelpers::createDir: Fix return value
...
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com >
2015-10-18 21:39:54 +02:00
M. Liebmann
885f13f6b0
Apollo/Kronos: Display backup options for 'var' and 'root1'...
...
...only if are mounted.
- Using /proc/mounts to find correct mountpoint for backup
2015-09-22 13:41:14 +02:00
Jacek Jendrzej
a34b32043a
fix Werror=format
2015-08-22 15:27:47 +02:00
Jacek Jendrzej
c06e5b1407
for debug filesystem
2015-08-21 22:04:04 +02:00
Thilo Graf
a185ad34d4
CFileHelpers: rework methode getDirSize(), makes it work recursively
2015-03-29 22:40:12 +02:00
Thilo Graf
1b095e725e
CFileHelpers: add function getDirSize()
2015-03-29 22:40:12 +02:00