mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-02 20:08:29 +00:00
xrt: Rename a prober-related define that wasn't namespaced.
This commit is contained in:
parent
46fdb32991
commit
b5bcea758d
src/xrt
|
@ -42,7 +42,7 @@ struct os_hid_device;
|
|||
*/
|
||||
#define XRT_MAX_DEVICES_PER_PROBE 16
|
||||
|
||||
#define MAX_AUTO_PROBERS 16
|
||||
#define XRT_MAX_AUTO_PROBERS 16
|
||||
|
||||
/*!
|
||||
* Function pointer type for a handler that gets called when a device matching vendor and product ID is detected.
|
||||
|
|
|
@ -371,7 +371,7 @@ disable_drivers_from_conflicts(struct prober *p)
|
|||
}
|
||||
}
|
||||
|
||||
for (size_t ap = 0; ap < MAX_AUTO_PROBERS; ap++) {
|
||||
for (size_t ap = 0; ap < XRT_MAX_AUTO_PROBERS; ap++) {
|
||||
if (p->auto_probers[ap] == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
@ -484,7 +484,7 @@ initialize(struct prober *p, struct xrt_prober_entry_lists *lists)
|
|||
return -1;
|
||||
}
|
||||
|
||||
for (int i = 0; i < MAX_AUTO_PROBERS && lists->auto_probers[i]; i++) {
|
||||
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && lists->auto_probers[i]; i++) {
|
||||
p->auto_probers[i] = lists->auto_probers[i]();
|
||||
}
|
||||
|
||||
|
@ -582,7 +582,7 @@ teardown(struct prober *p)
|
|||
u_var_remove_root((void *)p);
|
||||
|
||||
// Clean up all auto_probers.
|
||||
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
||||
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
||||
p->auto_probers[i]->destroy(p->auto_probers[i]);
|
||||
p->auto_probers[i] = NULL;
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ add_from_devices(struct prober *p, struct xrt_device **xdevs, size_t xdev_count,
|
|||
static void
|
||||
add_from_auto_probers(struct prober *p, struct xrt_device **xdevs, size_t xdev_count, bool *have_hmd)
|
||||
{
|
||||
for (int i = 0; i < MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
||||
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {
|
||||
|
||||
bool skip = false;
|
||||
for (size_t disabled = 0; disabled < p->num_disabled_drivers; disabled++) {
|
||||
|
|
|
@ -142,7 +142,7 @@ struct prober
|
|||
} uvc;
|
||||
#endif
|
||||
|
||||
struct xrt_auto_prober *auto_probers[MAX_AUTO_PROBERS];
|
||||
struct xrt_auto_prober *auto_probers[XRT_MAX_AUTO_PROBERS];
|
||||
|
||||
size_t device_count;
|
||||
struct prober_device *devices;
|
||||
|
|
|
@ -76,7 +76,7 @@ cli_cmd_probe(int argc, const char **argv)
|
|||
printf("\t%s\n", entries[i]->driver_name);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < MAX_AUTO_PROBERS; i++) {
|
||||
for (size_t i = 0; i < XRT_MAX_AUTO_PROBERS; i++) {
|
||||
if (auto_probers[i] == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue