Pierre Ossman
25b8412333
Avoid poking around in STREAM internals
...
It's easy to make mistakes this way, and bypassed the normal bounds
checking. So make sure we always use macros or functions.
2019-05-06 14:33:38 +02:00
Pierre Ossman
489c43f382
Return STREAM objects from data generating functions
...
Use a consistent style of returning a new STREAM object from functions
that output data, rather than requiring an existing structure to be
passed in. This generally makes the memory management more straight
forward and allows us to do more proper bounds checking of everything.
This also adds some new STREAM macros to make it easier to manage
them without poking around in the internal structure.
2019-05-06 14:33:11 +02:00
Pierre Ossman
6268b44f06
Add macro to check remaining length of STREAM
...
Avoids poking around in the internals, and also makes the code
easier to read.
2019-05-06 14:33:05 +02:00
Henrik Andersson
87d8d123b8
Rework the logging system
...
This commit will add a logging system to solve the problem that
one actually need to recompile rdesktop from source to enable
different debug logging.
- Same logging api for all kind of logging and messages to
end user.
- Adding -v for verbose output when running rdesktop.
- All messages are logged into a subject and with a type, eg:
logger(Keyboard, Notice, "Autos-electing %s based on locale.", locale);
- Debug logging is enabled trough a environment variable RDEKSTOP_DEBUG,
which specifies subjects of interest, comma separated. There is a special
subject named All which includes all subject for debug loggin. There is also
a simple logic opeartor '!' = NOT which can be used in combination like:
RDESKTOP_DEBUG=All,!Graphics,!Sound
Which would give debug log output for All subject except Graphics and Sound.
2017-01-26 14:19:40 +01:00
remijouannet
b46639ad3c
indent-all.sh
2016-05-24 18:02:22 +02:00
Henrik Andersson
e71e7f8d8c
Apply patch #218
...
Fixes compilation of rdesktop on IRIX
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1842 423420c4-83ab-492f-b58f-81f9feb106b5
2014-11-19 07:44:18 +00:00
Peter Åstrand
b47063c74f
Consistent formatting of emails in copyright headers.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1616 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:28:19 +00:00
Peter Åstrand
b638882347
Include emails in copyright statements.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
281d7c9f06
Changed license to GPLv3
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Jay Sorg
88855ddcbf
update the copyright year
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Michael Gernoth
ac49af5c6a
reduce CPU usage in libao and sgi sound driver
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1421 423420c4-83ab-492f-b58f-81f9feb106b5
2007-10-30 13:57:31 +00:00
Jay Sorg
6091381a81
prefix BOOL with RD_
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
797df4fa02
copyright year update
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Jay Sorg
b670bdacfa
RD_ prefix and win32 compatibility for core files
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1363 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 04:55:56 +00:00
Pierre Ossman
f0c0188404
Fix audio_driver initialisation to avoid problem with uninitialised
...
variables and reduce the memory leakage.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1355 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-02 11:39:56 +00:00
Michael Gernoth
0f40bd195e
fix SGI output driver
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1354 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-24 15:24:17 +00:00
Michael Gernoth
2086e83814
Make code compile with C89 compilers again
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1350 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-24 13:53:23 +00:00
Pierre Ossman
c6712a8945
Abstract select() handling in rdpsnd so that backends can do their thing
...
more correctly.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1345 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-07 15:23:45 +00:00
Pierre Ossman
139e42d9ef
Restructure driver registration structures a bit so it is easier to add
...
new fields (and also reduce some memory usage/leaks).
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1344 423420c4-83ab-492f-b58f-81f9feb106b5
2006-12-07 11:54:29 +00:00
Pierre Ossman
d9dbd38cfe
Fix some remaining references to rdpsnd_send_completion().
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1303 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-27 12:29:05 +00:00
Pierre Ossman
22d88645ff
Rewrite the queue management a bit so that blocks are not completed until
...
they have finished playing. This also makes the queue system mandatory for
all backends.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1301 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-26 09:47:17 +00:00
Michael Gernoth
e82b81576b
make it possible for the driver to switch resampling on and off
...
dynamically. this will be needed for the OSS driver.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1278 423420c4-83ab-492f-b58f-81f9feb106b5
2006-10-01 14:03:43 +00:00
Michael Gernoth
7ef82f75c7
unify audio-byteswapping as a dsp-function
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1259 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 15:25:10 +00:00
Michael Gernoth
99afd6a9f1
fix SunCC errors/warnings and configure-variable-usage (LIBS/LDFLAGS)
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1255 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 11:42:22 +00:00
Michael Gernoth
07b5b9e41c
allow multiple sound-drivers to be compiled in simultaneously and
...
make the runtime selectable
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1254 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 11:04:50 +00:00
Michael Gernoth
ec4862937f
unify queue-handling in rdpsnd.c (remove private copies from all
...
drivers)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1253 423420c4-83ab-492f-b58f-81f9feb106b5
2006-09-17 10:32:18 +00:00
Peter Åstrand
1cbaccbc15
Applied patch from Jeremy Meng <void.foo@gmail.com>:
...
1. Update contact email.
2. Remove debug messages
3. Give the operating system a little break during sound playing.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1031 423420c4-83ab-492f-b58f-81f9feb106b5
2005-12-16 07:48:02 +00:00
Peter Åstrand
1320755f2b
Added missing c-basic-offset:s and license headers
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@962 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-03 10:56:16 +00:00
Michael Gernoth
900efb873c
bugfix from Jeremy Meng <voidfoo@cwazy.co.uk>
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@911 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-26 22:36:44 +00:00
Peter Åstrand
23c56655af
Indent fixes
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@908 423420c4-83ab-492f-b58f-81f9feb106b5
2005-06-07 11:10:13 +00:00
Michael Gernoth
09b1c824ac
SGI sound fixes from Jeremy Meng <voidfoo@cwazy.co.uk>
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@896 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-30 09:13:13 +00:00
Michael Gernoth
4cca15390d
remove C++-style comments
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@864 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-15 11:25:50 +00:00
Michael Gernoth
c8e3385371
correct author in rdpsnd_sgi
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@783 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-15 18:04:16 +00:00
Peter Åstrand
4acb0f3f31
Indent fixes.
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@745 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 13:03:32 +00:00
Michael Gernoth
d5cdeaa8de
SGI sound support from Jeremy Meng <voidfoo@cwazy.co.uk>
...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@743 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 11:39:49 +00:00