diff options
Diffstat (limited to 'xorg/server/module/rdp.h')
-rw-r--r-- | xorg/server/module/rdp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/xorg/server/module/rdp.h b/xorg/server/module/rdp.h index 085e114f..c3533e98 100644 --- a/xorg/server/module/rdp.h +++ b/xorg/server/module/rdp.h @@ -33,6 +33,38 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define PixelDPI 100 #define PixelToMM(_size) (((_size) * 254 + (PixelDPI) * 5) / ((PixelDPI) * 10)) +#define RDPMIN(_val1, _val2) ((_val1) < (_val2) ? (_val1) : (_val2)) +#define RDPMAX(_val1, _val2) ((_val1) < (_val2) ? (_val2) : (_val1)) +#define RDPCLAMP(_val, _lo, _hi) \ + (_val) < (_lo) ? (_lo) : (_val) > (_hi) ? (_hi) : (_val) + +/* defined in rdpClientCon.h */ +typedef struct _rdpClientCon rdpClientCon; + +struct _rdpPointer +{ + int cursor_x; + int cursor_y; + int old_button_mask; + int button_mask; + DeviceIntPtr device; +}; +typedef struct _rdpPointer rdpPointer; + +struct _rdpKeyboard +{ + int pause_spe; + int ctrl_down; + int alt_down; + int shift_down; + int tab_down; + /* this is toggled every time num lock key is released, not like the + above *_down vars */ + int scroll_lock_down; + DeviceIntPtr device; +}; +typedef struct _rdpKeyboard rdpKeyboard; + /* move this to common header */ struct _rdpRec { @@ -57,7 +89,12 @@ struct _rdpRec CompositeProcPtr Composite; GlyphsProcPtr Glyphs; + /* keyboard and mouse */ miPointerScreenFuncPtr pCursorFuncs; + /* mouse */ + rdpPointer pointer; + /* keyboard */ + rdpKeyboard keyboard; /* RandR */ RRSetConfigProcPtr rrSetConfig; @@ -73,6 +110,10 @@ struct _rdpRec RRGetPanningProcPtr rrGetPanning; RRSetPanningProcPtr rrSetPanning; + int listen_sck; + char uds_data[256]; + rdpClientCon *clientConHead; + rdpClientCon *clientConTail; }; typedef struct _rdpRec rdpRec; typedef struct _rdpRec * rdpPtr; |