mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-21 06:01:43 +00:00
t/common: Replace references to xrt_prober_create
This commit is contained in:
parent
c42675437b
commit
6c77b8d314
|
@ -8,8 +8,8 @@ cli = executable(
|
|||
'cli_cmd_probe.c',
|
||||
'cli_cmd_test.c',
|
||||
'cli_common.h',
|
||||
'cli_instance.c',
|
||||
'cli_main.c',
|
||||
'cli_prober.c',
|
||||
),
|
||||
link_whole: [
|
||||
lib_aux_os,
|
||||
|
|
|
@ -82,6 +82,8 @@ add_library(target_instance STATIC
|
|||
target_link_libraries(target_instance PRIVATE
|
||||
xrt-interfaces
|
||||
aux_util
|
||||
st_prober
|
||||
target_lists
|
||||
)
|
||||
target_include_directories(target_instance PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../drivers
|
||||
|
|
|
@ -18,5 +18,6 @@ lib_target_instance = static_library(
|
|||
'target_instance.c',
|
||||
),
|
||||
include_directories: [xrt_include],
|
||||
link_with: [lib_target_lists, lib_st_prober],
|
||||
dependencies: [aux],
|
||||
)
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
* @author Jakob Bornecrantz <jakob@collabora.com>
|
||||
*/
|
||||
|
||||
#include "target_lists.h"
|
||||
|
||||
#include "xrt/xrt_prober.h"
|
||||
#include "xrt/xrt_instance.h"
|
||||
#include "xrt/xrt_gfx_fd.h"
|
||||
|
@ -102,7 +104,7 @@ xrt_instance_create(struct xrt_instance **out_xinst)
|
|||
{
|
||||
struct xrt_prober *xp = NULL;
|
||||
|
||||
int ret = xrt_prober_create(&xp);
|
||||
int ret = xrt_prober_create_with_lists(&xp, &target_lists);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue