Pierre Ossman
ca0c5f5714
Don't throw exceptions in destructors
6 years ago
Pierre Ossman
ff872614b5
Include stddef.h to get access to size_t
8 years ago
Pierre Ossman
f0812683f8
Fix typo in include protector
8 years ago
Pierre Ossman
a6b00267f2
Block signals from being handled on worker threads
8 years ago
Pierre Ossman
769931efdf
Include class keyword for friend declaration
Only C++11 allows omitting the class keyword, so include it so
the code compiles with older compilers.
8 years ago
Pierre Ossman
7b63a7cef5
Create one decode thread for each CPU
We can start creating more decoding threads now that we handle
rect ordering properly. No point in creating more threads than
there are CPUs though.
8 years ago
Pierre Ossman
504afa27c1
Make the decoder multi-threaded
This implements the basic infrastructure for multi-threaded
decoding of rects. However there is just one thread reading data
and one thread decoding it. More logic is needed to safely decode
multiple rects at the same time.
8 years ago
Pierre Ossman
687d52c9af
Add abstraction classes for system thread primitives
8 years ago
Pierre Ossman
500cb6ef11
Fix Winsock errno code overlap
Some Winsock errno:s conflict with the standard ones. Try to
restrict the redefines to things relevant for sockets.
9 years ago
Peter Åstrand (astrand)
11167e1f08
Use a common header file for Windows errno names.
In earlier Visual Studio and MinGW editions, BSD socket errno:s were
left undefined. This is no longer the case. This may cause build or
runtime errors. To avoid this, we are using a common header file which
corrects all definitions. This header will also be used with other
projects such as sercd, unfs3, PulseAudio etc.
9 years ago
Pierre Ossman
88c24edd8f
Raise GnuTLS requirements to 3.x
This allows us to simplify things by getting rid of some old
compatibility code. People should really be using current versions
of GnuTLS anyway to stay secure.
9 years ago
Pierre Ossman
5ad4d06006
Remove a lot of platform compatibilty stuff
It's either not used, or no longer relevant.
10 years ago
Adam Tkac
80bd3ec6e6
Create common/os/libos.la file
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4996 3789f03b-4d11-0410-bbf8-ca57d06f2519
11 years ago
DRC
3080ec4065
Enable WinVNC build with MinGW and MinGW64
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4723 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 years ago
DRC
ce82f4bbcd
Move setting of PIC code to a central location
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4648 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 years ago
Pierre Ossman
92b4f9de98
CMake doesn't handle convenience libraries as nicely as autotools does. We
need to be explicit with -fPIC here as we use these in libvnc.so.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4645 3789f03b-4d11-0410-bbf8-ca57d06f2519
12 years ago
DRC
1980dd537c
Remove unused autotools build system
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4540 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Pierre Ossman
06084f46a1
We don't need to special case Windows anymore now since we have proper
checks for old GnuTLS in CMake.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4333 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Pierre Ossman
d0f0f034d2
Fix up typo that's been copied around in several places.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4332 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Pierre Ossman
0153e23fac
Windows actually has socklen_t, it's just that it is in a special header.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4327 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
d007ececa0
[Bugfix] Fix Windows build, recently added GNUTLS compat code broke it.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4279 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
b486423692
[Bugfix] Improve compatibility with ancient GNUTLS implementations even more.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4278 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
68481c19eb
[Development] os: add gnutls_x509_crt_print() implementation, older systems
don't have it and improve backward compatibility of TLS code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4277 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
c480ee3266
[Development] os: introduce new function called "fileexists"
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4255 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
af0817220e
[Development] Rename function "gethomedir" to "getvnchomedir" and rewrite it in
platform-intependent manner.
Thanks to Guillaume Destuynder.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4252 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
b8ec9e851f
[Development] Implement gethomedir() function on Windows.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4208 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
d627667b31
[Bugfix] Don't compile gethomedir function on WIN32
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4178 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
b56a69c7fd
[Development] Introduce gethomedir() function to retrieve home directory path.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4176 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
DRC
180c0167b4
CMake build system for Windows
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4171 3789f03b-4d11-0410-bbf8-ca57d06f2519
13 years ago
Adam Tkac
8aee1a8c9d
- use unix/configure.ac as top-level configure.ac base
- create stub top-level Makefile.am
- make common/ subtree compilable
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/unified_buildsys@3892 3789f03b-4d11-0410-bbf8-ca57d06f2519
14 years ago
Adam Tkac
3f869259bf
Revert r3657 (import of autogenerated) files.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3675 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
fc4cd71685
Import autogenerated files for unix/ and common/ subdirs to make source
compilable without GNU autotools.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3657 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Peter Åstrand
52cb7b4003
The restrict keyboard was introduced with C99, but we are aiming for
C89 compatibility.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3374 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
be4c3acee7
[Layout] Added os/net.[ch]. They will include wrappers for missing IPv6
capabilities and should hide common networking related differences
between OSs
[Port] Implement IPv4-only version of inet_ntop for OSs which doesn't have it
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3369 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
3422fbd158
[Portability] Implemented snprintf() function to support old compilers
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3290 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
241e900971
[Portability] Reimplement vsnprintf to be C89 compatible
Main problem is that C89 doesn't have va_copy macro thus you can't parse va_list
twice.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3289 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Peter Åstrand
9403363ddd
Corrected r3167; the file is called common-config.win.h, not
common-config.win32.h.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3275 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
20e0d711fd
[Refactoring] Improved rdr::Exception constructor. It now accepts variable
number of arguments.
[Bugfix] Minor compilation fixes (missing #includes)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3168 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago
Adam Tkac
247b729032
[Refactoring] Introduced common/os/ directory for platform dependent
implementations and move vsnprintf() declaration there.
[Refactoring] Introduced common/common-config.win.h for handling WIN32
platform specifics.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3167 3789f03b-4d11-0410-bbf8-ca57d06f2519
15 years ago