summaryrefslogtreecommitdiff
path: root/dri3/dri3_screen.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2014-03-27 23:47:59 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-04-01 10:31:09 -0700
commit9ba2084321b1ac8d271feefee4f5b968d34226d6 (patch)
treece7af2b5b98023c86018924633c93b96364a9a09 /dri3/dri3_screen.c
parent4ba7b594464887ae68623e150348d90812eec36c (diff)
dri3: Allow asynchronous implementation for dri3_open
By passing the client pointer to the dri3_open implementation, we allow the clients to implement the open callback asynchronously. If the client ignore count is positive after returning from dri3_open, we assume that authentication is in progress and doesn't send the reply. The code to send the reply is moved into a helper function, which the implementation can call upon receiving its authenticaion reply. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dri3/dri3_screen.c')
-rw-r--r--dri3/dri3_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c
index c88029612..bbf1d05a9 100644
--- a/dri3/dri3_screen.c
+++ b/dri3/dri3_screen.c
@@ -40,7 +40,7 @@ dri3_open(ClientPtr client, ScreenPtr screen, RRProviderPtr provider, int *fd)
if (!info || !info->open)
return BadMatch;
- rc = (*info->open) (screen, provider, fd);
+ rc = (*info->open) (client, screen, provider, fd);
if (rc != Success)
return rc;