Skip to content

Conversation

matt335672
Copy link
Member

@matt335672 matt335672 commented Sep 9, 2025

Here are a few changes I've wanted to do for a while:

  • Another tranche of constants from ms-rdpbcgr.h are renamed to match the defines in [MS-RDPBCGR]. This improves traceability back to the specification.
  • A couple of void * pointers in struct xrdp_session are replaced with pointers to incomplete types. This allows us to remove a very large number of unnecessary C casts, primarily from libxrdp.

No functional changes are introduced by this PR. I'm not intending to back-port it to V0.10.x

Rename the defines from [MS-RDPBCGR] 2.2.9.1.1.4 and
2.2.9.1.1.4.3 to match the documentation.
Rename the defines from [MS-RDPBCGR] 2.2.8.1.1.1.2 to
match the documentation.
Rename the defines from [MS-RDPBCGR] 2.2.9.1.1.3.1 to match
the documentation.
void * pointers in xrdp_session are replaced with pointers to
incomplete types. This allows us to remove a very large number of casts
related to these members in libxrdp.c
Copy link
Member

@metalefty metalefty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@matt335672 matt335672 merged commit 976a708 into neutrinolabs:devel Sep 11, 2025
14 checks passed
@matt335672 matt335672 deleted the code_improvements branch September 11, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants