From c893e4faec212953174c12c68538d55929c90ad3 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 18 Nov 2014 17:55:26 +0100 Subject: Add get_api() function --- src/x11/headless.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/x11/headless.rs') diff --git a/src/x11/headless.rs b/src/x11/headless.rs index e6479d6..78fb985 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -47,6 +47,11 @@ impl HeadlessContext { }) } } + + /// See the docs in the crate root file. + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } impl Drop for HeadlessContext { -- cgit v1.2.3