diff --git a/mc/mc.h b/mc/mc.h index 684219c7..ac31334c 100644 --- a/mc/mc.h +++ b/mc/mc.h @@ -24,7 +24,7 @@ #include "os_calls.h" #include "defines.h" -#define CURRENT_MOD_VER 2 +#define CURRENT_MOD_VER 3 struct mod { @@ -42,8 +42,8 @@ struct mod int (*mod_get_wait_objs)(struct mod* v, tbus* read_objs, int* rcount, tbus* write_objs, int* wcount, int* timeout); int (*mod_check_wait_objs)(struct mod* v); - long mod_dumby[100 - 9]; /* align, 100 minus the number of mod - functions above */ + tintptr mod_dumby[100 - 9]; /* align, 100 minus the number of mod + functions above */ /* server functions */ int (*server_begin_update)(struct mod* v); int (*server_end_update)(struct mod* v); @@ -85,14 +85,15 @@ struct mod char* data, int data_len, int total_data_len, int flags); int (*server_bell_trigger)(struct mod* v); - long server_dumby[100 - 25]; /* align, 100 minus the number of server - functions above */ + tintptr server_dumby[100 - 25]; /* align, 100 minus the number of server + functions above */ /* common */ - long handle; /* pointer to self as long */ - long wm; - long painter; - int sck; + tintptr handle; /* pointer to self as long */ + tintptr wm; + tintptr painter; + tintptr si; /* mod data */ + int sck; int width; int height; int bpp; diff --git a/neutrinordp/xrdp-neutrinordp.h b/neutrinordp/xrdp-neutrinordp.h index aaff6d5a..68eae750 100644 --- a/neutrinordp/xrdp-neutrinordp.h +++ b/neutrinordp/xrdp-neutrinordp.h @@ -58,7 +58,7 @@ struct pointer_item int bpp; }; -#define CURRENT_MOD_VER 2 +#define CURRENT_MOD_VER 3 struct mod { @@ -76,8 +76,8 @@ struct mod int (*mod_get_wait_objs)(struct mod* v, tbus* read_objs, int* rcount, tbus* write_objs, int* wcount, int* timeout); int (*mod_check_wait_objs)(struct mod* v); - long mod_dumby[100 - 9]; /* align, 100 minus the number of mod - functions above */ + tintptr mod_dumby[100 - 9]; /* align, 100 minus the number of mod + functions above */ /* server functions */ int (*server_begin_update)(struct mod* v); int (*server_end_update)(struct mod* v); @@ -152,14 +152,15 @@ struct mod int (*server_set_pointer_ex)(struct mod* mod, int x, int y, char* data, char* mask, int bpp); - long server_dumby[100 - 37]; /* align, 100 minus the number of server - functions above */ + tintptr server_dumby[100 - 37]; /* align, 100 minus the number of server + functions above */ /* common */ - tbus handle; /* pointer to self as long */ - tbus wm; - tbus painter; - int sck; + tintptr handle; /* pointer to self as long */ + tintptr wm; + tintptr painter; + tintptr si; /* mod data */ + int sck; int width; int height; int bpp; diff --git a/vnc/vnc.h b/vnc/vnc.h index 6d265beb..278341dc 100644 --- a/vnc/vnc.h +++ b/vnc/vnc.h @@ -25,7 +25,7 @@ #include "d3des.h" #include "defines.h" -#define CURRENT_MOD_VER 2 +#define CURRENT_MOD_VER 3 struct vnc { @@ -43,8 +43,8 @@ struct vnc int (*mod_get_wait_objs)(struct vnc* v, tbus* read_objs, int* rcount, tbus* write_objs, int* wcount, int* timeout); int (*mod_check_wait_objs)(struct vnc* v); - long mod_dumby[100 - 9]; /* align, 100 minus the number of mod - functions above */ + tintptr mod_dumby[100 - 9]; /* align, 100 minus the number of mod + functions above */ /* server functions */ int (*server_begin_update)(struct vnc* v); int (*server_end_update)(struct vnc* v); @@ -86,14 +86,15 @@ struct vnc char* data, int data_len, int total_data_len, int flags); int (*server_bell_trigger)(struct vnc* v); - long server_dumby[100 - 25]; /* align, 100 minus the number of server - functions above */ + tintptr server_dumby[100 - 25]; /* align, 100 minus the number of server + functions above */ /* common */ - long handle; /* pointer to self as long */ - long wm; - long painter; - int sck; + tintptr handle; /* pointer to self as long */ + tintptr wm; + tintptr painter; + tintptr si; /* mod data */ + int sck; int server_width; int server_height; int server_bpp; diff --git a/xrdp/xrdp_types.h b/xrdp/xrdp_types.h index 21d00e9a..5551e58d 100644 --- a/xrdp/xrdp_types.h +++ b/xrdp/xrdp_types.h @@ -48,8 +48,8 @@ struct xrdp_mod tbus* write_objs, int* wcount, int* timeout); int (*mod_check_wait_objs)(struct xrdp_mod* v); int (*mod_frame_ack)(struct xrdp_mod* v, int flags, int frame_id); - long mod_dumby[100 - 10]; /* align, 100 minus the number of mod - functions above */ + tintptr mod_dumby[100 - 10]; /* align, 100 minus the number of mod + functions above */ /* server functions */ int (*server_begin_update)(struct xrdp_mod* v); int (*server_end_update)(struct xrdp_mod* v); @@ -146,13 +146,13 @@ struct xrdp_mod int num_crects, short *crects, char *data, int width, int height, int flags, int frame_id); - long server_dumby[100 - 43]; /* align, 100 minus the number of server - functions above */ + tintptr server_dumby[100 - 43]; /* align, 100 minus the number of server + functions above */ /* common */ - long handle; /* pointer to self as int */ - long wm; /* struct xrdp_wm* */ - long painter; - int sck; + tintptr handle; /* pointer to self as int */ + tintptr wm; /* struct xrdp_wm* */ + tintptr painter; + tintptr si; }; /* header for bmp file */ diff --git a/xup/xup.h b/xup/xup.h index b7ec142c..1e1b7a38 100644 --- a/xup/xup.h +++ b/xup/xup.h @@ -26,7 +26,7 @@ #include "xrdp_client_info.h" #include "xrdp_rail.h" -#define CURRENT_MOD_VER 2 +#define CURRENT_MOD_VER 3 struct mod { @@ -45,8 +45,8 @@ struct mod tbus* write_objs, int* wcount, int* timeout); int (*mod_check_wait_objs)(struct mod* v); int (*mod_frame_ack)(struct mod* v, int flags, int frame_id); - tbus mod_dumby[100 - 10]; /* align, 100 minus the number of mod - functions above */ + tintptr mod_dumby[100 - 10]; /* align, 100 minus the number of mod + functions above */ /* server functions */ int (*server_begin_update)(struct mod* v); int (*server_end_update)(struct mod* v); @@ -140,13 +140,13 @@ struct mod char *data, int width, int height, int flags, int frame_id); - tbus server_dumby[100 - 43]; /* align, 100 minus the number of server - functions above */ + tintptr server_dumby[100 - 43]; /* align, 100 minus the number of server + functions above */ /* common */ - tbus handle; /* pointer to self as long */ - tbus wm; - tbus painter; - int sck; + tintptr handle; /* pointer to self as long */ + tintptr wm; + tintptr painter; + tintptr si; /* mod data */ int width; int height; @@ -156,7 +156,6 @@ struct mod char password[256]; char ip[256]; char port[256]; - tbus sck_obj; int shift_state; struct xrdp_client_info client_info; int screen_shmem_id;