aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Consistently use uint8_t for data buffersPierre Ossman2023-03-1852-99/+108
| | | | | | | | | | These will always be byte streams at heart, so let's try to keep them with a proper type. Should make it clearer how they will be used.
* | Emulate corking when TCP_CORK is missingPierre Ossman2023-06-281-1/+6
| | | | | | | | | | If we can't rely on the OS to handle corking for us, then we need to enable our own handling of it.
* | Move where -nodefaultlibs is specifiedPierre Ossman2023-06-281-4/+3
| | | | | | | | | | | | | | The previous method isn't compatible with CMake's try_compile() as it will respect CMAKE_EXE_LINKER_FLAGS, but not CMAKE_C_LINK_EXECUTABLE and friends. This results in the default libraries being completely missing, and the compile test failing.
* | Drop xorg-x11-font-utils requirement for RHEL 9Pierre Ossman2023-06-202-2/+0
| | | | | | | | They've patched their Xorg sources to no longer require this package.
* | Merge branch 'noxtest' of https://github.com/CendioOssman/tigervncPierre Ossman2023-06-152-6/+26
|\ \
| * | Fix missing XRandR buildPierre Ossman2023-06-141-1/+4
| | | | | | | | | | | | Make sure we can actually build without XRandR libraries.
| * | Fix missing XFixes buildPierre Ossman2023-06-142-0/+4
| | | | | | | | | | | | Make sure we can actually build without XFixes libraries.
| * | Fix missing XTest buildPierre Ossman2023-06-142-5/+18
|/ / | | | | | | Make sure we can actually build without XTest libraries.
* | Remove unneeded "using namespace"Pierre Ossman2023-06-145-6/+0
| | | | | | | | The need for these must have got lost somewhere in the type cleanup.
* | Avoid wildcards in cmake rulesPierre Ossman2023-04-171-4/+10
| | | | | | | | They are not fully supported and break with some backends, like Ninja.
* | Handle REQUIRED in our CMake "find" modulesPierre Ossman2023-04-174-0/+17
| | | | | | | | | | These are expected to abort if they fail to find the relevant software and "REQUIRED" is specified.
* | Prefer target_include_directories()Pierre Ossman2023-03-3115-53/+46
| | | | | | | | | | It is more specific, and it properly sets up propagation when include directories also need to be used further down a dependency chain.
* | Add all common inter-dependenciesPierre Ossman2023-03-314-2/+6
| | | | | | | | | | This is important in case there are build flags that need to propagate between libraries for things to build correctly.
* | Include Debian debug files in artefactsPierre Ossman2023-03-313-0/+3
| |
* | Raise Debian packaging versionPierre Ossman2023-03-313-3/+3
| | | | | | | | Get in sync with what's recommended these days.
* | Don't prompt when installing dependenciesPierre Ossman2023-03-313-3/+6
| | | | | | | | | | This is fully automated, so we can't let anything wait for user input or the job will just hang.
* | Remove unnecessary ; from build scriptsPierre Ossman2023-03-316-34/+34
| | | | | | | | | | The newlines aren't stripped, so they are quite sufficient separators for the commands.
* | Limit GitHub action run timesPierre Ossman2023-03-251-0/+5
| | | | | | | | | | We don't want a broken job to consume our entire quota, so make sure things are killed if the stray too far from a normal runtime.
* | Update copyright year in READMESamuel Mannehed2023-03-241-1/+1
| |
* | Detect leaving window on zaphod systemsPierre Ossman2023-03-081-1/+9
|/ | | | | | | The coordinates we get are relative the root window of each screen, so we can only trust them if we are on the same screen. So let's explicitly check that we are still getting events from the expected screen by checking the root window field of the event.
* Merge branch 'types' of https://github.com/CendioOssman/tigervncPierre Ossman2023-03-02297-5504/+4469
|\
| * Merge "Pixel" type in to PixelFormat headerPierre Ossman2023-02-185-30/+3
| | | | | | | | | | It's a type specific to that class, so let's keep them close for clarity.
| * Use operator overloading for comparisonPierre Ossman2023-02-0421-31/+44
| | | | | | | | | | It is much more natural than custom methods for this very common operation.
| * Warn if Point/Rect/Region methods are used wrongPierre Ossman2023-02-042-9/+24
| | | | | | | | | | | | It is easy to get confused if these methods modify the existing object, or return a new one. So let's mark the return value as critical so the compiler can help out if someone gets it wrong.
| * Avoid redefining errnoPierre Ossman2023-02-042-12/+12
| | | | | | | | | | | | This can have unexpected consequences as some code may rely on it being a simple variable. Instead to what we do in Socket, which is to define a unique name for getting socket error numbers.
| * Remove unneeded header from SDesktop.hPierre Ossman2023-02-044-3/+3
| | | | | | | | It doesn't use any exceptions, so stop including the header for it.
| * Remove unused rfb/util.h includesPierre Ossman2023-02-0429-12/+19
| | | | | | | | | | | | | | | | These files don't use anything from this header, so remove the include. This exposes some missing includes in other places, though. So add an explicit include in the files that were relying on an indirect inclusion.
| * Remove "str" prefix from string helpersPierre Ossman2023-02-0414-67/+66
| | | | | | | | | | This matches the naming in STL, which is what we are mostly mimicing now that we are using std::string for these functions.
| * Use standard C string functionsPierre Ossman2023-02-046-50/+9
| | | | | | | | It's just confusing that we have our own variety that isn't compatible.
| * Remove custom CharArray typePierre Ossman2023-02-046-47/+6
| | | | | | | | | | It has now been replaced, mostly by std::string, so remove the actual type definition.
| * Use std::string for string memory managementPierre Ossman2023-02-0417-97/+66
| | | | | | | | | | Avoids a bit of complexity by delegating that handling to a string object.
| * Use std::string instead of CharArrayPierre Ossman2023-02-0458-375/+391
| | | | | | | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
| * Use std::vector for temporary char arraysPierre Ossman2023-02-045-39/+37
| | | | | | | | | | | | | | | | It's more standard and familiar than our custom CharArray type, and it still gives us automatic freeing of the buffer. We could probably have used std::unique_ptr instead, but we are currently targeting older compilers where C++11 isn't standard yet.
| * Free char buffer directlyPierre Ossman2023-02-044-16/+24
| | | | | | | | | | It's extreme overkill to inherit from CharArray just to get the automatic freeing of the buffer when the object is destroyed.
| * Make strSplit() simpler and saferPierre Ossman2023-02-0411-123/+90
| | | | | | | | | | | | | | Get rid of all the magical re-allocation and shuffling and instead just return a new set of strings that is fully splitted. Will consume a bit more memory, but is a lot safer to use as there is less confusion about ownership of memory.
| * Return std::string instead of dynamic allocationsPierre Ossman2023-02-0447-450/+357
| | | | | | | | | | | | We mostly use classical C strings, but the memory management around them can get confusing and error prone. Let's use std::string for the cases where we need to return a newly allocated string.
| * Specify expected array size in argumentsPierre Ossman2023-02-042-4/+4
| | | | | | | | | | The compiler doesn't enforce this, but it at least documents the expected array size.
| * Use fixed size character bufferPierre Ossman2023-02-0411-84/+74
| | | | | | | | | | We know the needed space here, so let's keep it simple with a constant size string buffer.
| * Remove trailing slash from getvnchomedir()Pierre Ossman2023-02-045-12/+12
| | | | | | | | | | It should return a path to the directory itself, just like its sister function getuserhomedir().
| * Namespace directory functionsPierre Ossman2023-02-047-28/+32
| | | | | | | | All library functions should be in a proper namespace.
| * Better fallback for missing peer addressPierre Ossman2023-02-041-3/+3
| | | | | | | | | | | | A blank string might be very confusing, depending on where this will be used. Let's give something more visible back in the cases where we cannot get the proper name for the peer.
| * Return static char buffer from some methodsPierre Ossman2023-02-0424-137/+111
| | | | | | | | | | | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
| * Replace tabs with spacesPierre Ossman2023-02-041-45/+45
| | | | | | | | Use the same indentation we use in all other files.
| * Use string literal instead of dynamic bufferPierre Ossman2023-02-042-8/+8
| | | | | | | | | | These don't need to be changed, so let's just keep it simple with a constant string literal.
| * Remove unneded string duplicationPierre Ossman2023-02-041-8/+1
| | | | | | | | | | It's unclear why this was initially added. The function takes string constants, so it is not going to modify these.
| * Remove unneeded CharArray:sPierre Ossman2023-02-043-22/+18
| | | | | | | | | | Avoid complicating things by moving things in to a second buffer here as there is no need for it.
| * Use StringParameters directlyPierre Ossman2023-02-0420-75/+40
| | | | | | | | | | We don't need to make extra copies of the string in most cases, so let's simplify the code and access the string directly when we can.
| * Get rid of TCHAR magicPierre Ossman2023-02-0468-700/+453
| | | | | | | | | | We never use Windows' "UNICODE" mode anyway, so let's get rid of this complexity.
| * Return std::vector instead of dynamic allocationPierre Ossman2023-02-048-40/+35
| | | | | | | | | | This makes memory management more clear and robust when using these helper functions.
| * Avoid duplicating configuration settingPierre Ossman2023-02-041-16/+7
| | | | | | | | | | Let the string helpers call the more fancy setParam(). This makes sure we can avoid duplicating things.