libusb10.c (5906bf4984400c498b0b3d8f572ec8d18c5b13c7) | libusb10.c (a9205626a7e2f89486e637d6187ff99c17efeb10) |
---|---|
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: --- 277 unchanged lines hidden (view full) --- 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 | 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: --- 277 unchanged lines hidden (view full) --- 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_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize) 295{ 296 return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); 297} 298 299int |
|
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 300uint8_t 301libusb_get_device_address(libusb_device *dev) --- 1273 unchanged lines hidden --- | 300libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, 301 uint8_t bufsize) 302{ 303 return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); 304} 305 306uint8_t 307libusb_get_device_address(libusb_device *dev) --- 1273 unchanged lines hidden --- |