struct xrdp_session: Remove void * pointers

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
This commit is contained in:
matt335672
2025-09-09 14:09:59 +01:00
parent 0a13316e6a
commit 127a95e254
3 changed files with 105 additions and 164 deletions
+5 -2
View File
@@ -63,6 +63,9 @@ struct xrdp_rect
int bottom;
};
struct xrdp_rdp;
struct xrdp_orders;
struct xrdp_session
{
tintptr id;
@@ -70,8 +73,8 @@ struct xrdp_session
int (*callback)(intptr_t id, int msg, intptr_t param1, intptr_t param2,
intptr_t param3, intptr_t param4);
int check_for_app_input;
void *rdp;
void *orders;
struct xrdp_rdp *rdp;
struct xrdp_orders *orders;
struct xrdp_client_info *client_info;
int up_and_running;
int (*is_term)(void);