libusb10.c (14b896ce80daad378a70a125ca15c2e23cd8d34b) | libusb10.c (0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311) |
---|---|
1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 294 unchanged lines hidden (view full) --- 303uint8_t 304libusb_get_bus_number(libusb_device *dev) 305{ 306 if (dev == NULL) 307 return (0); /* should not happen */ 308 return (libusb20_dev_get_bus_number(dev->os_priv)); 309} 310 | 1/* $FreeBSD$ */ 2/*- 3 * Copyright (c) 2009 Sylvestre Gallon. All rights reserved. 4 * Copyright (c) 2009 Hans Petter Selasky. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 294 unchanged lines hidden (view full) --- 303uint8_t 304libusb_get_bus_number(libusb_device *dev) 305{ 306 if (dev == NULL) 307 return (0); /* should not happen */ 308 return (libusb20_dev_get_bus_number(dev->os_priv)); 309} 310 |
311uint8_t 312libusb_get_port_number(libusb_device *dev) 313{ 314 if (dev == NULL) 315 return (0); /* should not happen */ 316 return (libusb20_dev_get_parent_port(dev->os_priv)); 317} 318 |
|
311int 312libusb_get_port_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize) 313{ 314 return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); 315} 316 317int 318libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, --- 1282 unchanged lines hidden --- | 319int 320libusb_get_port_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize) 321{ 322 return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); 323} 324 325int 326libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, --- 1282 unchanged lines hidden --- |