libusb10.c (69e6d7b75e96c406d072cb83ffc9b26fbf1a86fb) | libusb10.c (5906bf4984400c498b0b3d8f572ec8d18c5b13c7) |
---|---|
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: --- 276 unchanged lines hidden (view full) --- 285uint8_t 286libusb_get_bus_number(libusb_device *dev) 287{ 288 if (dev == NULL) 289 return (0); /* should not happen */ 290 return (libusb20_dev_get_bus_number(dev->os_priv)); 291} 292 | 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: --- 276 unchanged lines hidden (view full) --- 285uint8_t 286libusb_get_bus_number(libusb_device *dev) 287{ 288 if (dev == NULL) 289 return (0); /* should not happen */ 290 return (libusb20_dev_get_bus_number(dev->os_priv)); 291} 292 |
293int 294libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, 295 uint8_t bufsize) 296{ 297 return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); 298} 299 |
|
293uint8_t 294libusb_get_device_address(libusb_device *dev) 295{ 296 if (dev == NULL) 297 return (0); /* should not happen */ 298 return (libusb20_dev_get_address(dev->os_priv)); 299} 300 --- 1267 unchanged lines hidden --- | 300uint8_t 301libusb_get_device_address(libusb_device *dev) 302{ 303 if (dev == NULL) 304 return (0); /* should not happen */ 305 return (libusb20_dev_get_address(dev->os_priv)); 306} 307 --- 1267 unchanged lines hidden --- |