214 Commits

Author SHA1 Message Date
Armin Novak
81526b19a2 [string,format] fix format strings for debug messages 2026-03-03 14:07:49 +01:00
Armin Novak
ea77d2d922 [nodiscard] fix all InitOnceExecuteOnce usages 2026-02-27 15:52:28 +01:00
Armin Novak
89ab3c6c1b [nodiscard] Fix all winpr_RAND usages
* Check return value and act on it.
* Initialize arrays that were missed before.
2026-02-27 15:52:26 +01:00
Armin Novak
5c510af477 [c23,freerdp] replace NULL with nullptr 2026-02-26 15:06:27 +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
1366f0d646 [locale,keyboard] remove [[nodiscard]]
return value is not required to be checked.
2026-02-25 11:51:12 +01:00
Armin Novak
4e4f84d33d [libfreerdp] mark internal functions [[nodiscard]] 2026-02-24 11:54:00 +01:00
Armin Novak
d228b0f3d3 [clang,warnings] fix Wjump-misses-init 2026-01-08 11:32:42 +01:00
akallabeth
b160ea80e8 [mingw] fix type incompatibilities
The integer types with MINGW do not always match. Ensure the correct
32bit interger base type is used when passing pointers
2025-12-12 19:09:30 +01:00
akallabeth
6414d81a58 codespell 2025-11-11 08:48:22 +01:00
Armin Novak
6cfdf9e43e [json] use WINPR_JSON_GetObjectItemCaseSensitive
Prefer usage of case sensitive functions that are faster.
2025-09-23 12:38:23 +02:00
akallabeth
abbee49ef5 [winpr,path] fix endianness issues 2025-09-19 18:35:03 +02:00
akallabeth
8b9335aa90 [CMake,libfreerdp] add pkg-config dependencies 2025-09-11 07:17:42 +02:00
akallabeth
7877f32cbc [locale,keyboard] use new JSON config reader 2025-05-26 19:36:40 +02:00
akallabeth
1a5ba989e8 [warnings] fixed integer casts 2025-03-11 17:23:58 +01:00
akallabeth
5139a3a3e5 Merge pull request #11296 from akallabeth/invert-3x-deprecated
Invert 3x deprecated
2025-03-06 16:00:44 +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
4466ee6141 [locale] add freerdp_detect_keyboard_layout_from_locale
This new function allows detecting the default keyboard layout from a
locale string of form de_AT or similar
2025-03-06 11:58:10 +01:00
Armin Novak
9f5a00edd8 [warnings] fix various warnings
* Log values ignored but with a defined value (previously unused)
* Fix missing define guards for deprected symbols in unit tests
2025-03-05 15:44:23 +01:00
akallabeth
7496f6e42c Merge pull request #11273 from akallabeth/cleanups
[client,x11] implement keyboard mapping
2025-03-05 14:07:12 +01:00
akallabeth
61910ad0b5 [dead code] remove some unused code
also fix some parts no longer compiling after enabling it again
2025-03-04 17:24:13 +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
8ea2c5dde6 [client,x11] implement keyboard mapping
* move to client code
* fix parse_xkb_rule_names
2025-03-04 13:26:42 +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
dd69531cf7 [locale,keyboard] fix loading from file 2025-02-14 21:49:55 +01:00
akallabeth
74cd8d8fe0 [freerdp,warnings] fix -Wunused-parameter 2025-02-13 15:53:54 +01:00
akallabeth
469588d61d [locale,keyboard] fix integer conversions 2025-02-10 13:27:46 +01:00
akallabeth
4013b3132b [clang,tidy] fix sign warnings 2025-02-10 13:11:16 +01:00
akallabeth
7bea2ad5ca [locale,keyboard] use int64_t to avoid sign warnings 2025-02-10 12:39:28 +01:00
akallabeth
564724d56a [locale,keyboard] fix conditionally uninitialized 2024-12-17 16:56:07 +01:00
akallabeth
c29e93f4b2 [locale,keyboard] deprecate keyboard mapping
* deprecate keyboard mapping functions:
  * not context sensitive bug app global
  * only work reliable with XKB files
* expose functions to parse and remap RDP scancodes
2024-12-17 12:52:42 +01:00
akallabeth
77de3738b7 [locale,test] fix missing format argument 2024-12-09 12:44:51 +01:00
akallabeth
ba8fd2ada5 [cmake] force configuration options
limit multiconfiguration options to supported types
2024-12-05 09:36:23 +01:00
akallabeth
f7e5e6507b Merge pull request #10895 from akallabeth/cmake-format
Cmake format
2024-11-28 14:52:19 +01:00
Armin Novak
601249115f [codespell] fix spelling mistakes 2024-11-28 11:52:22 +01:00
akallabeth
faae38120c [cmake,format] reformat all cmake files 2024-11-27 20:41:48 +01:00
akallabeth
b5f95e0f87 [codespell] fix spelling mistakes 2024-11-21 11:28:06 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00
akallabeth
78acedb40e [warnigns] fix Wshorten-64-to-32 2024-11-11 10:22:37 +01:00
akallabeth
a3aa01214c [resource root] unify locations
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +02:00
Armin Novak
527db6783b [cmake] split tests
* Keep BUILD_TESTING, but only run tests compatible with API (for
  packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
  tests that modify API to be run on our CI
2024-10-24 09:45:44 +02:00
akallabeth
5353bff104 [assert] use WINPR_STATIC_ASSERT 2024-10-16 19:07:07 +02:00
akallabeth
acf80baeb7 [locale,xkbfile] fix comparison function 2024-10-16 13:32:20 +02:00
akallabeth
f6eb6ad4d7 [utils,string] add freerdp_extract_key_value
* Add new function freerdp_extract_key_value to extract key/value pairs
  from a string
* replace all sscanf usages with this new function
2024-10-01 13:05:34 +02:00
akallabeth
239440e28d [warnings] remove or comment unused macros 2024-09-20 18:49:38 +02:00
akallabeth
ffd40983ac [locale,keyboard] fix index range checks 2024-09-20 08:28:56 +02:00
akallabeth
564656166e [locale,keyboard] add unit tests for functions 2024-09-18 21:31:16 +02:00
akallabeth
7ae1f07aa8 [locale,keyboard] fix missing input validation 2024-09-18 21:17:28 +02:00
akallabeth
afde8e779b [locale,keyboard] fix loading of keyboard locales
if keyboard locales should be loaded from a file also load the layouts
2024-09-18 21:17:21 +02:00
akallabeth
0d5bc92a2b [warnings] fix apple iOS/macos 2024-09-15 19:47:13 +02:00