Commit Graph

1232 Commits

Author SHA1 Message Date
akallabeth
866d89992c [winpr,bitstream] remove unnecessary casts 2025-03-20 09:15:25 +01:00
Armin Novak
e4df43a37a [freerdp] fix argument consistency, casts 2025-03-19 19:32:09 +01:00
Armin Novak
b14f9e8965 [winpr] refactor complex expressions
* avoid unnecessary casts
2025-03-19 19:00:09 +01:00
Armin Novak
3e6707c443 [warnings] fix issues from ci builder 2025-03-12 12:02:04 +01:00
Biswapriyo Nath
27e9c4f951 [winpr,nt] Fix incorrect name in FILE_INFORMATION_CLASS
This renames FileUnknownInformation1 with FileCompletionInformation which is documented in
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-_file_information_class
2025-03-09 08:54:44 +00: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
71bc44935a [winpr,bcrypt] declare WCHAR constants c99 compatible 2025-03-05 23:49:04 +01:00
akallabeth
42d210d133 [winpr,nt] Add FSInformationClass2Tag 2025-03-05 22:27:33 +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
ec030e8255 [winpr,stream] implement reference counting for streams 2025-02-27 20:30:25 +01:00
akallabeth
5b9a1b5b1f [winpr,clipboard] define guard DIBv5 support 2025-02-27 08:33:39 +01:00
akallabeth
78851e929e [winpr,wlog] simplify WLog_* macros
Macro nesting did expose some compiler limitations with GCC 11.4.0, so
replace the macros with static inline functions where possible.
2025-02-24 22:00:39 +01:00
akallabeth
e259eee0df [macro] fix use of WINPR_DEPRECATED 2025-02-17 11:15:46 +01:00
akallabeth
76c2944d99 [winpr,warnings] fix -Wunused-parameter 2025-02-13 15:53:51 +01:00
Armin Novak
e89efdece9 [winpr] add WINPR_ATTR_UNUSED 2025-02-13 13:32:25 +01:00
akallabeth
0ae7c4b52d [cmake] refactor configuration
* Split common stuff to reusable files
* Disable INTERPROCEDURAL_OPTIMIZATION for SDL2/3 resource targets
2025-02-11 11:33:34 +01:00
akallabeth
94554fd3ca [winpr,input] fix japanese mapping
use japanese 109 layout instead of 106 layout
2025-01-19 11:16:44 +01:00
akallabeth
ea2022b76b [clang,tidy] fix warnings 2025-01-15 09:32:52 +01:00
akallabeth
41cedbcb7c [ci,coverity] simplify pragma 2025-01-13 13:32:35 +01:00
akallabeth
f22b4efb7c [winpr,sysinfo] include winnt.h
* PF_SSE4_1_INSTRUCTIONS_AVAILABLE et al are defined in winnt.h on
  windows / mingw. Include explicitly to fix a mingw build issue.
2025-01-09 23:41:37 +01:00
akallabeth
65ef3f81e2 [winpr,input] add missing WINPR_KBD_TYPE
add mapping for uncommon keyboard types as well.
2025-01-09 09:41:54 +01:00
akallabeth
19cc9ac670 [winpr,nt] fix argument of NtStatus2Tag
use NTSTATUS instead of UINT32 as argument type
2025-01-07 08:46:32 +01:00
akallabeth
1d4e9fc708 Merge pull request #10998 from akallabeth/winpr-implicit-fix
[warnings] fix integer casting in winpr
2025-01-04 09:58:43 +01:00
Pascal Nowack
dd75ea6a37 winpr/input: Add missing korean keyboard type
The keyboard types in 2.2.1.3.2 Client Core Data (TS_UD_CS_CORE)
([MS-RDPBCGR]) contain a korean keyboard type, which is not yet present
in WinPR. So, add it.
2025-01-03 13:28:44 +01:00
akallabeth
307bf48870 [warnings] fix integer casting in winpr
* use WINPR_ASSERTING_INT_CAST to detect overflows in sign or narrow
  integer casts
* replace defines with static variables
2025-01-03 10:08:57 +01:00
akallabeth
795914e50c [winpr,assert] always compile in assert helper 2024-12-18 14:12:10 +01:00
akallabeth
964063a369 [winpr,cast] split cast macros to header
* Simplify winpr/assert.h to have the least possible includes
* Move some definitions to winpr/platform.h
* Split and move cast macros to winpr/cast.h
* Add new cast macro for integer casts
2024-12-18 14:12:06 +01:00
akallabeth
43bfc74721 [cmake] install only header files
skip empty directories on install
2024-12-15 17:54:54 +01:00
akallabeth
a3db26c57a [warnings] fix cast warnings 2024-12-10 17:26:37 +01:00
akallabeth
a461f7bc4b [winpr,streampool] Add StreamPool_WaitForReturn 2024-12-10 13:10:23 +01:00
Armin Novak
35c687a0c4 [winpr,stream] add StreamPool_UsedCount 2024-12-10 11:40:01 +01:00
Martin Fleisz
2161ce2985 Merge pull request #10930 from akallabeth/endianess
Endianess
2024-12-10 10:30:17 +01:00
akallabeth
16f8eee229 [winpr,bcrypt] define BCRYPT WCHAR with C11 u"STR" 2024-12-09 12:10:01 +01:00
akallabeth
33a125d4a3 [winpr,winpr.h] static assert WINPR_REINTERPRET_CAST 2024-12-08 22:56:01 +01:00
akallabeth
514d300be8 [winpr,endian] Data_Write_* static functions
* Convert Data_Write_* macros to static inline functions
* Add winpr_Data_Get_* inline functions to read
* Use winpr_Data_Write_* functions in wStream API
* Add deprecated fallback to old names for external software
2024-12-08 22:55:45 +01:00
akallabeth
344841714c Merge pull request #10844 from akallabeth/cmake-mulitconfig
Cmake multiconfig
2024-12-07 17:43:05 +01:00
Armin Novak
7643ecbf25 [winpr,debug] WINPR_ATTR_MALLOC backtrace functions 2024-12-06 09:15:54 +01: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
akallabeth
180a9d7d72 [cmake,flags] print all configuration flags
Since we do not know wich configuration will be build with
multiconfiguration generators print out all C_FLAGS_XXX and
CXX_FLAGS_XXX variables
2024-12-05 09:36:26 +01:00
akallabeth
7842891d0f [winpr,spec] fix windows compatibility
define NONAMELESSUNION to have the same struct definitions under windows
as we have under linux.
2024-11-28 15:19:06 +01:00
akallabeth
17295d114b [winpr] fix OVERLAPPED and SYSTEM_INFO definitions
rename them to conform to windows versions
2024-11-28 15:18:42 +01:00
akallabeth
06214fec26 [winpr,wtypes] fix LPHANDLE definition
PHANDLE and LPHANDLE are pointers to a HANDLE
2024-11-28 15:18:42 +01:00
akallabeth
99d6fdba9d [winpr,wtypes] simplify by basing on stdint.h 2024-11-28 15:18:40 +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
402cc34e8c [winpr,synch] fix timer HANDLE casts 2024-11-22 11:00:30 +01:00
akallabeth
163e74844f [pragma] clang does not support -Wdiscarded-qualifiers 2024-11-22 11:00:22 +01:00
akallabeth
136a8998c4 [winpr,stream] fix 64bit stream function
* Fix Stream_Write_UINT64* functions
* Add unit tests to cover that
2024-11-21 18:40:11 +01:00
stephanebill
4f2afa8c47 spell check with codespell 2024-11-20 16:53:40 -05:00