Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Monado
Monado
Commits
46389cd6
Commit
46389cd6
authored
Sep 09, 2019
by
Jakob Bornecrantz
Browse files
xrt: Send in real prober to auto probers
parent
59a2b87c
Pipeline
#63786
passed with stages
in 1 minute
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/xrt/drivers/ohmd/oh_prober.c
View file @
46389cd6
...
...
@@ -51,9 +51,9 @@ oh_prober_destroy(struct xrt_auto_prober *p)
}
static
struct
xrt_device
*
oh_prober_autoprobe
(
struct
xrt_auto_prober
*
p
)
oh_prober_autoprobe
(
struct
xrt_auto_prober
*
xap
,
struct
xrt_prober
*
x
p
)
{
struct
oh_prober
*
ohp
=
oh_prober
(
p
);
struct
oh_prober
*
ohp
=
oh_prober
(
xa
p
);
int
device_idx
=
-
1
;
...
...
src/xrt/drivers/psvr/psvr_prober.c
View file @
46389cd6
...
...
@@ -69,9 +69,9 @@ psvr_prober_destroy(struct xrt_auto_prober *p)
}
static
struct
xrt_device
*
psvr_prober_autoprobe
(
struct
xrt_auto_prober
*
p
)
psvr_prober_autoprobe
(
struct
xrt_auto_prober
*
xap
,
struct
xrt_prober
*
x
p
)
{
struct
psvr_prober
*
ppsvr
=
psvr_prober
(
p
);
struct
psvr_prober
*
ppsvr
=
psvr_prober
(
xa
p
);
struct
hid_device_info
*
info_control
=
NULL
;
struct
hid_device_info
*
info_handle
=
NULL
;
struct
hid_device_info
*
cur_dev
=
NULL
;
...
...
src/xrt/include/xrt/xrt_prober.h
View file @
46389cd6
...
...
@@ -301,8 +301,8 @@ xrt_prober_create_with_lists(struct xrt_prober **out_prober,
*/
struct
xrt_auto_prober
{
struct
xrt_device
*
(
*
lelo_dallas_autoprobe
)(
struct
xrt_
auto_
prober
*
x
dev
);
struct
xrt_device
*
(
*
lelo_dallas_autoprobe
)(
struct
xrt_auto_prober
*
xap
,
struct
xrt_prober
*
x
p
);
void
(
*
destroy
)(
struct
xrt_auto_prober
*
xdev
);
};
...
...
src/xrt/state_trackers/prober/p_prober.c
View file @
46389cd6
...
...
@@ -540,7 +540,7 @@ select_device(struct xrt_prober* xp,
for
(
int
i
=
0
;
i
<
MAX_AUTO_PROBERS
&&
p
->
auto_probers
[
i
];
i
++
)
{
struct
xrt_device
*
xdev
=
p
->
auto_probers
[
i
]
->
lelo_dallas_autoprobe
(
p
->
auto_probers
[
i
]);
p
->
auto_probers
[
i
]
,
xp
);
if
(
xdev
==
NULL
)
{
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment