The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xrt: Remove functions now living in helper code

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
126dbb54 a38ea423

-54
-14
src/xrt/include/xrt/xrt_prober.h
··· 152 152 XRT_PROBER_STRING_SERIAL_NUMBER, 153 153 }; 154 154 155 - const char * 156 - xrt_prober_string_to_string(enum xrt_prober_string t); 157 - 158 - const char * 159 - xrt_bus_type_to_string(enum xrt_bus_type t); 160 - 161 155 /*! 162 156 * A probed device, may or may not be opened. 163 157 * ··· 473 467 int 474 468 xrt_prober_create_with_lists(struct xrt_prober **out_xp, struct xrt_prober_entry_lists *list); 475 469 476 - /*! 477 - * @public @memberof xrt_prober 478 - */ 479 - bool 480 - xrt_prober_match_string(struct xrt_prober *xp, 481 - struct xrt_prober_device *dev, 482 - enum xrt_prober_string type, 483 - const char *to_match); 484 470 485 471 /* 486 472 *
-40
src/xrt/state_trackers/prober/p_prober.c
··· 144 144 return 0; 145 145 } 146 146 147 - #define ENUM_TO_STR(r) \ 148 - case r: return #r 149 - 150 - const char * 151 - xrt_prober_string_to_string(enum xrt_prober_string t) 152 - { 153 - switch (t) { 154 - ENUM_TO_STR(XRT_PROBER_STRING_MANUFACTURER); 155 - ENUM_TO_STR(XRT_PROBER_STRING_PRODUCT); 156 - ENUM_TO_STR(XRT_PROBER_STRING_SERIAL_NUMBER); 157 - } 158 - return ""; 159 - } 160 - 161 - const char * 162 - xrt_bus_type_to_string(enum xrt_bus_type t) 163 - { 164 - switch (t) { 165 - ENUM_TO_STR(XRT_BUS_TYPE_UNKNOWN); 166 - ENUM_TO_STR(XRT_BUS_TYPE_USB); 167 - ENUM_TO_STR(XRT_BUS_TYPE_BLUETOOTH); 168 - } 169 - return ""; 170 - } 171 - 172 - bool 173 - xrt_prober_match_string(struct xrt_prober *xp, 174 - struct xrt_prober_device *dev, 175 - enum xrt_prober_string type, 176 - const char *to_match) 177 - { 178 - unsigned char s[256] = {0}; 179 - int len = xrt_prober_get_string_descriptor(xp, dev, type, s, sizeof(s)); 180 - if (len <= 0) { 181 - return false; 182 - } 183 - 184 - return 0 == strncmp(to_match, (const char *)s, sizeof(s)); 185 - } 186 - 187 147 int 188 148 p_dev_get_usb_dev(struct prober *p, 189 149 uint16_t bus,