summaryrefslogtreecommitdiff
path: root/glamor
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 /glamor
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 'glamor')
-rw-r--r--glamor/glamor_egl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 812342129..e2b6a9226 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -608,7 +608,8 @@ glamor_egl_close_screen(ScreenPtr screen)
}
static int
-glamor_dri3_open(ScreenPtr screen,
+glamor_dri3_open(ClientPtr client,
+ ScreenPtr screen,
RRProviderPtr provider,
int *fdp)
{