From fa0789343e6c31ff0480a828cfd0bd82f1b09897 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 10 Apr 2020 13:47:30 +0100 Subject: [PATCH] targets: Add stub implementations of xrt_gfx_provider_create_fd This is needed by st/prober's default implementation of xrt_instance. --- src/xrt/targets/cli/cli_main.c | 7 +++++++ src/xrt/targets/gui/gui_sdl2_main.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/xrt/targets/cli/cli_main.c b/src/xrt/targets/cli/cli_main.c index 1e62dac4d..63a6c14a3 100644 --- a/src/xrt/targets/cli/cli_main.c +++ b/src/xrt/targets/cli/cli_main.c @@ -51,3 +51,10 @@ main(int argc, const char **argv) } return cli_print_help(argc, argv); } + +//! Needed to support st/prober. +int +xrt_gfx_provider_create_fd() +{ + return -1; +} diff --git a/src/xrt/targets/gui/gui_sdl2_main.c b/src/xrt/targets/gui/gui_sdl2_main.c index a177298e6..5dd5b3a7a 100644 --- a/src/xrt/targets/gui/gui_sdl2_main.c +++ b/src/xrt/targets/gui/gui_sdl2_main.c @@ -57,3 +57,10 @@ main(int argc, char **argv) return 0; } + +//! Needed to support st/prober. +int +xrt_gfx_provider_create_fd() +{ + return -1; +}