618 Commits

Author SHA1 Message Date
Armin Novak
92ab55c5e1 [winpr,stream] Add Stream_ResetPosition
A helper function that does not require return checks, in contrast to
Stream_SetPosition, which might fail.
2026-03-01 06:11:59 +01:00
Armin Novak
e5816d65ce [c23,server] replace NULL with nullptr 2026-02-26 14:34:11 +01:00
Armin Novak
e58819830a [c23] simplify boolean checks 2026-02-26 11:51:05 +01:00
Armin Novak
48267edf2f [winpr] add WINPR_C_ARRAY_INIT
since C23 allows c++ style initializing replace direct use with this
macro
2026-02-25 19:23:08 +01:00
Armin Novak
8a24443ed6 [nodiscard] fix wrong attribute position 2026-02-24 16:10:11 +01:00
akallabeth
b2f325251a [server] add WINPR_ATTR_NODISCARD macro 2026-02-24 11:03:46 +01:00
Armin Novak
f4c991f902 [server,shadow] make rdtk optional 2026-02-19 16:18:32 +01:00
Armin Novak
73419a3a29 [rdtk,nodiscard] mark rdtk API nodiscard 2026-02-19 13:19:26 +01:00
Armin Novak
dbef19705b [server,shadow] clean up code, check returns
* Fix return value checks
* Mark internal functions [[nodiscard]]
* Refactor x11 backend to simplify locking checks
2026-02-19 12:23:02 +01:00
Armin Novak
86327cba6f [server,shadow] fix return and parameter checks 2026-02-19 08:49:33 +01:00
Armin Novak
48769060aa [server,shadow] simplify locking
use a wrapper function holding the locks, so no error conditions need to
be checked and the lock is released unconditionally.
2026-02-18 13:23:48 +01:00
Armin Novak
df64d00a97 [warnings,api] fix -Wunused-result
With marking publid API [[nodiscard]] some problematic error checks in
the core library were uncovered. This commit addresses these
shortcomings.
2026-02-17 11:07:08 +01:00
Armin Novak
a1c72a2f85 [server,warnings] properly handle function return 2026-02-16 09:18:39 +01:00
akallabeth
460ca149f2 [server] mark all WINPR_ATTR_MALLOC also nodiscard 2026-01-26 13:22:30 +01:00
akallabeth
59e4e4b388 [c,printf] fix wlog format string to match arguments 2026-01-16 11:42:41 +01:00
akallabeth
6efef20dc4 [c,printf] fix wlog format string to match arguments 2026-01-16 11:42:38 +01:00
akallabeth
5cd12aed13 [server] add RLGR_MODE checks when read from settings 2026-01-09 09:37:58 +01:00
Armin Novak
68bbbcb2a6 [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:44 +01:00
Armin Novak
8aeb1c98b0 [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:44 +01:00
Armin Novak
c637a868ba [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:44 +01:00
Armin Novak
902aee4df1 [c++,compat] rename variables clashing with c++ keywords 2026-01-08 09:24:31 +01:00
akallabeth
74648eb3a9 [c,standard] use C99 inline 2025-09-26 11:29:26 +02:00
akallabeth
74a3a7695c [cmake,pkg-config] properly set requires fields 2025-09-21 19:07:16 +02:00
Armin Novak
d355082c32 [cmake] static build: populate private
in pkg-config files only add Requires.private and Libs.private if we
build a static library.
2025-09-11 10:59:26 +02:00
akallabeth
c3e507a82e [winpr,wlog] Replace WLog_PrintMessage calls
Prefer WLog_PrintTextMessage to have proper format string checks in
place.
2025-08-13 15:08:01 +02:00
akallabeth
12d0e491f6 [cmake] add installWithRPATH
this new CMake function installs a target to a destination and adds the
correct relative RPATH to some desired locations
2025-07-17 13:59:51 +02:00
Armin Novak
b5b258c9f4 [winpr,path] fix NULL arguments for DeleteFile 2025-06-05 11:58:47 +02:00
gpotter2
a175640025 Support non-RDP security when shadow server running as Hyper-V console 2025-05-06 22:23:40 +02:00
gpotter2
0a10fe8ce3 Add 'restricted-admin' flag to shadow server 2025-05-06 22:08:36 +02:00
akallabeth
2fb2e5f9c5 [crypto,key] add function to export PEM and create a key
* freerdp_key_generate creates a new key
* freerdp_key_get_pem exports the key as PEM
2025-04-22 12:00:40 +02:00
akallabeth
7f5a3bc352 [server,shadow] sort command line arguments
when printing the help output first sort the COMMAND_LINE_ARGUMENT_A by
argument name.
2025-04-10 09:10:36 +02:00
akallabeth
4b2d65e977 [server,shadow] add option to hide mouse cursor 2025-04-10 09:10:33 +02:00
akallabeth
40b162736c [server,shadow] fix x11_shadow_query_cursor
the coordinates must be clamped to positive values.
2025-04-10 08:48:54 +02:00
akallabeth
87683746a5 [server,shadow] implement relative mouse support 2025-04-10 08:43:33 +02:00
akallabeth
4356dd35f0 [server,shadow] add option WITH_SERVER_SHADOW_CLI
this allows building the shadow library only without cli tools
2025-03-20 09:15:29 +01:00
akallabeth
e3c93573f3 [cmake] add explicit instructions to turn off unmaintained modules
* Add detailed CMake warning to disable unmaintained modules
* Add sample shadow subsystem implementation
* Allow building shadow server with dummy subsystem
2025-03-17 16:23:51 +01:00
Armin Novak
c79f080e8d [warnings] improve array bound checks 2025-03-12 15:04:38 +01:00
akallabeth
3186977e15 [cmake] Invert WITH_FREERDP_3x_DEPRECATED
API breaking change, with this logic the symbol needs to be manually
defined by an API user. So, to fix this:
* Rename to DROP_FREERDP_3x_DEPRECATED
* Invert logic, so a undefined value enables the symbols
2025-03-06 15:30:26 +01:00
akallabeth
44d5461cd5 [warnings] fix -Wunused-but-set-variable 2025-03-06 07:15:20 +01:00
akallabeth
d03b4b91d5 [cmake,freerdp] add WITH_FREERDP_3x_DEPRECATED
This new CMake option (ON by default) allows building the library with
all symbols deprecated during 3.x release cycle disabled.
This allows compatibility testing external applications for future
FreeRDP 4.x support
2025-03-04 13:26:45 +01:00
akallabeth
5faf0149c2 [server,shadow] readd multi rect BitmapUpdate support
* Partially revert 1f83198bb1
* Introduce new /bitmap-compat command line option for shadow-server
* Default to send multi rectangle BitmapUpdate
2025-02-28 11:19:36 +01:00
akallabeth
d4f7fb081b [warnings] fix -Wunused-function
* delete unused functions that are no longer required
* define guard functions only used while debugging
2025-02-27 19:29:46 +01:00
akallabeth
3454194ea4 [server,warnings] fix -Wunused-parameter for shadow 2025-02-13 15:54:15 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
06402de801 [server,shadow] properly clean up encoder 2025-01-12 15:12:00 +01:00
akallabeth
26eac974fe [warnings] fix integer casting
* use WINPR_ASSERTING_INT_CAST where possible
 * fix a few inconsistencies
2024-12-19 12:33:42 +01:00
akallabeth
cc6c3dd98b Merge pull request #10927 from Biswa96/typo-rdpSettings
shadow: Fix typo with rdpSettings data type
2024-12-07 17:50:07 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
Biswapriyo Nath
cad4f8ebd7 shadow: Fix typo with rdpSettings data type
This commit fixes the following compiler error.

FreeRDP/server/shadow/Win/win_wds.c:767:9: error: unknown type name 'rdpSetting';
did you mean 'rdpSettings'?
  767 |         rdpSetting* settings = subsystem->shw->settings;
      |         ^~~~~~~~~~
      |         rdpSettings

The typo was introduced in ba41d5e532 commit.
2024-12-06 18:25:57 +00:00
akallabeth
83f2f21ad3 [warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter
* wtypes: fix PHANDLE definition
* wStream: fix INT64 write function warnings
* Simplify HANDLE copy in channels, just assign after proper cast
2024-12-06 09:15:48 +01:00