diff options
author | Jon Smirl <[email protected]> | 2004-07-16 04:27:00 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2004-07-16 04:27:00 +0000 |
commit | dc8a7603a39bade5b7411e79d5773834b89bd023 (patch) | |
tree | cfb33cd2e312d038865277abd55b0ee262c1b348 /src/glx/mini/miniglxP.h | |
parent | 84e6b16d8fcaaf676474488d369d2df0c2117160 (diff) |
Miniglx clients now authorize with server DRM
Diffstat (limited to 'src/glx/mini/miniglxP.h')
-rw-r--r-- | src/glx/mini/miniglxP.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/glx/mini/miniglxP.h b/src/glx/mini/miniglxP.h index 426f4a97084..4aa9458d323 100644 --- a/src/glx/mini/miniglxP.h +++ b/src/glx/mini/miniglxP.h @@ -139,6 +139,8 @@ struct MiniGLXDisplayRec { int clientID; int nrFds; /**< \brief number of connections (usually just one for the clients) */ struct MiniGLXConnection *fd; /**< \brief connections */ + int drmFd; /**< \brief handle to drm device */ + int authorized; /**< \brief has server authorized this process? */ struct { int nr, head, tail; @@ -183,6 +185,21 @@ struct MiniGLXDisplayRec { /*@}*/ }; +/** Character messages. */ +enum msgs { + _CanIHaveFocus, + _IDontWantFocus, + _YouveGotFocus, + _YouveLostFocus, + _RepaintPlease, + _Authorize, +}; +extern int send_msg( Display *dpy, int i, const void *msg, size_t sz ); +extern int send_char_msg( Display *dpy, int i, char msg ); +extern int blocking_read( Display *dpy, int connection, char *msg, size_t msg_size ); +extern int handle_fd_events( Display *dpy, int nonblock ); + + extern Bool __glXWindowExists(__DRInativeDisplay *dpy, GLXDrawable draw); extern int __miniglx_open_connections( Display *dpy ); |