Bernhard Miklautz
b8136a3769
build: remove FREERDP_MONOLITHIC_BUILD
...
FREERDP_MONOLITHIC_BUILD was obsolete for a while and unused
2016-01-12 17:32:32 +01:00
Bernhard Miklautz
25363c05d6
update .gitignore files
...
* add missing entries
2016-01-12 17:32:32 +01:00
Armin Novak
a9e3368d44
Fixed broken duplicate define.
2016-01-12 16:38:53 +01:00
Bernhard Miklautz
97edeca204
Merge pull request #2874 from akallabeth/stdtypes
...
Using stdint.h and stdbool.h for type definitions
2015-12-17 16:37:54 +01:00
Armin Novak
d25855b287
Added comment to generated defines.
2015-12-17 16:25:16 +01:00
Armin Novak
33500b400d
Removed obsolete wtypes.h
2015-12-17 13:30:41 +01:00
Armin Novak
ef23b4568c
Renamed HAVE_STDXX_H in public header.
2015-12-17 13:15:00 +01:00
Armin Novak
f8565b8b75
Generating wtypes.h now with used defines.
2015-12-17 12:01:52 +01:00
Armin Novak
120e5e2d43
Moved header detection defines to config.h
2015-12-17 11:28:03 +01:00
Armin Novak
864f06b161
Added missing include.
2015-12-17 10:59:59 +01:00
Bernhard Miklautz
d03b38765a
Merge pull request #2816 from akallabeth/known_hosts_locking
...
Known hosts locking
2015-12-16 19:03:15 +01:00
Bernhard Miklautz
06307f1ac1
winpr/file: disable buffering
...
When FILE streams are used per default buffering is enabled but
WriteFile/ReadFile shouldn't do any extra buffering.
2015-12-16 18:47:42 +01:00
Bernhard Miklautz
79707cb7fd
makecert: fix installation of .a file
...
Since cb958ba9c6
libwinpr-makecert-tool.a
wasn't installed anymore.
2015-12-16 17:45:59 +01:00
Armin Novak
5b2f4f50a0
Fixed FILE* leak and EndOfFile settings.
2015-12-16 17:35:59 +01:00
Armin Novak
03a1ff814d
Fixed unused warnings.
2015-12-16 15:15:46 +01:00
Armin Novak
6ed43cd6ec
Updated pdb file locations.
...
Now supporting generators NMake and Visual Studio.
2015-12-15 12:08:35 +01:00
Armin Novak
cb958ba9c6
Added pdb files to package target.
...
Fixed name collision with freerdp-shadow targets.
2015-12-15 12:07:21 +01:00
Armin Novak
e223684fcb
args arrays static.
...
When creating static builds the args arrays collided due
to global visibility.
2015-12-15 12:07:21 +01:00
Armin Novak
d339b986de
Fixed broken #if #endif.
2015-12-14 14:18:51 +01:00
Armin Novak
533e14745e
Fixed broken objective C detection.
2015-12-14 14:18:51 +01:00
Armin Novak
ff24885ff3
Fixed mixup of type defines.
2015-12-14 14:18:51 +01:00
Armin Novak
6e69caad9f
Disabled definition of BOOL for objective C
2015-12-14 14:18:50 +01:00
Armin Novak
63894eb4e7
Using stdint.h and stdbool.h for type definitions
...
When stdint.h or stdbool.h are detected, use these
standard types for definitions in wtypes.h
2015-12-14 14:18:50 +01:00
Armin Novak
6010932984
Fixed possible race on file creation.
2015-12-14 09:32:42 +01:00
Armin Novak
f0e3a2d845
Added extended file seek tests.
2015-12-10 10:40:14 +01:00
Armin Novak
fe51dd1e10
Fixed logging, added file name.
2015-12-10 10:39:37 +01:00
Armin Novak
400d1b8b96
Fixed open mode for fdopen.
2015-12-10 10:37:44 +01:00
Armin Novak
19744f3bb8
Added additional file functions and tests.
2015-12-09 18:29:16 +01:00
Armin Novak
d0e3528c8e
Added winpr_strerror function.
2015-12-09 18:27:37 +01:00
Armin Novak
a04f1f8fc5
Added missing _snprintf define.
2015-12-09 18:27:05 +01:00
Xiaodong Qi
602d2715a2
Fix compilation error under Visual Studio 2010
...
Visual Studio 2010 use a compiler that supports only C89, which
only supports declaring variable at top of a local scope. Moving
scope variable to the top of function should solve this problem.
2015-11-29 00:14:29 +08:00
Hardening
be8f8f7238
Merge pull request #2970 from bmiklautz/prep_2.0
...
2.0 preparations
2015-11-11 12:54:34 +01:00
Bernhard Miklautz
bff63b3ee2
wlog: cleanup API includes
...
Only include necessary header files.
2015-11-10 16:29:09 +01:00
Bernhard Miklautz
be0845b46c
wlog/journald: don't set a default identifier
...
Don't set the identifier to "winpr" as default value because journald
will use the programs name as default if no identifier is set.
This way a program using WLog doesn't need to set an identifier (except
it want something different then it's name).
2015-11-10 13:40:52 +01:00
Bernhard Miklautz
34c707304b
wlog: change variable naming and fix documentation
...
* change State to active and make it BOOL since it's only got two
used values
* fix some typos in the documentation
2015-11-10 12:05:23 +01:00
Hardening
aff69ab163
Merge pull request #2962 from akallabeth/client_build_fixes
...
Allow client build to be disabled
2015-11-10 09:59:45 +01:00
Bernhard Miklautz
25137988fe
wlog: fix build on windows
2015-11-09 19:47:51 +01:00
Bernhard Miklautz
57f952bbbc
wlog: fix android build
2015-11-09 19:37:02 +01:00
Bernhard Miklautz
0cdb4f7924
Fix compiler warnings
...
gcc (Debian 4.9.2-10) 4.9.2
winpr/libwinpr/thread/argv.c: In function ‘CommandLineToArgvA’:
winpr/libwinpr/thread/argv.c:94:6: warning: unused variable ‘index’ [-Wunused-variable]
int index;
winpr/libwinpr/file/test/TestFileGetStdHandle.c: In function ‘TestFileGetStdHandle’:
winpr/libwinpr/file/test/TestFileGetStdHandle.c:44:2: warning: implicit
declaration of function ‘CloseHandle’ [-Wimplicit-function-declaration]
CloseHandle(stdout);
^
libfreerdp/codec/test/TestFreeRDPRegion.c: In function ‘test_norbert2_case’:
libfreerdp/codec/test/TestFreeRDPRegion.c:697:6: warning: unused variable ‘i’ [-Wunused-variable]
int i;
channels/cliprdr/server/cliprdr_main.c: In function ‘cliprdr_server_receive_format_list’:
channels/cliprdr/server/cliprdr_main.c:636:24: warning: unused variable ‘cliprdr’ [-Wunused-variable]
CliprdrServerPrivate* cliprdr = (CliprdrServerPrivate*) context->handle;
^
channels/cliprdr/server/cliprdr_main.c: In function ‘cliprdr_server_init’:
channels/cliprdr/server/cliprdr_main.c:1097:24: warning: unused variable ‘cliprdr’ [-Wunused-variable]
CliprdrServerPrivate* cliprdr = (CliprdrServerPrivate*) context->handle;
2015-11-09 19:26:34 +01:00
Bernhard Miklautz
67368b2ec7
Adapt error level for debug messages
...
When using xfreerdp a regular invocation should really only report grave
problems as error. "Regular" messages should be either info or even
debug.
2015-11-09 18:27:38 +01:00
Bernhard Miklautz
07417599ce
wlog: rework, cleanup and stabilize API
...
* only expose necessary functions and types in header
* don't expose appender internals
* add generic function WLog_ConfigureAppender to have the possibility
to configure appender specific settings
* detect appender availability if WLog_SetLogAppenderType or
WLog_Appender_New return FALSE or NULL respectively the appender isn't
available or the initialization failed. This is very useful for the
use with optional appenders.
* add Free to the appender interface. At the time of the Free the
appender is known and available so it can be called directly (instead
of calling the right function according to the type)
* make all appender internal function static
* all appenders return the generic wLogAppender type now. Typecasts
are internally done where necessary this abstracts the appenders more
cleanly
2015-11-09 18:25:45 +01:00
Bernhard Miklautz
d73c4898c1
Add build-config.h
...
build-config.h should contain configure/compile time settings that are
relevant for projects that use FreeRDP.
For example the compiled in plugin search paths.
2015-11-09 15:54:22 +01:00
Norbert Federa
2ac195e8eb
Merge pull request #2964 from hardening/udp_appender
...
Add an UDP appender to wLog
2015-11-09 13:42:02 +01:00
David FORT
458aaa1213
Take in account @nfedera's remarks
2015-11-06 23:17:11 +01:00
Norbert Federa
d6b5b906f4
winpr/argv: fix CommandLineToArgvA memory access
...
- fixed access of unitialized memory beyond terminating null
- minor simplifications
2015-11-05 18:10:05 +01:00
David FORT
5fbf26acf2
Add an UDP appender to wLog
...
This appender allows to receive the logs over a network connection using UDP packets.
You can see the logs using a listening netcat, for example: nc -ul 127.0.0.1 20000.
2015-11-04 18:11:19 +01:00
Armin Novak
b5288daea5
Fixed return values.
2015-11-03 17:32:42 +01:00
Hardening
3d6e1fb418
Merge pull request #2951 from bmiklautz/friday
...
Misc fixes
2015-11-02 10:50:16 +01:00
David FORT
2a8de84342
Take in account @bmiklautz remarks
...
* I have added a function to set the journal identifier
* the appender name has been changed from SYSTEMD to JOURNALD
2015-11-01 21:34:03 +01:00
David FORT
e3915b66b7
Fix the env var leak
2015-10-30 20:22:25 +01:00