summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2008-01-04 01:17:06 +0000
committerDaniel Drake <dsd@gentoo.org>2008-01-04 01:17:06 +0000
commitde53d972ed9c1f21f86ffd585560520e986f212c (patch)
tree5c0672e48022d56d47a26127167b997dcf9fcd81 /examples
parent132d84bf8ae34bd0892b3d8207a53d87cc0a9cba (diff)
downloadlibusb-de53d972ed9c1f21f86ffd585560520e986f212c.tar.gz
Rename some _devh_ functions
Decided against naming functions in this style based on advice from Tim Roberts. Still not really sure about devh naming in general.
Diffstat (limited to 'examples')
-rw-r--r--examples/dpfp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/dpfp.c b/examples/dpfp.c
index 84c4905..eb81cff 100644
--- a/examples/dpfp.c
+++ b/examples/dpfp.c
@@ -486,14 +486,14 @@ int main(void)
}
printf("found device\n");
- devh = libusb_devh_open(dev);
+ devh = libusb_open(dev);
if (!devh) {
fprintf(stderr, "Could not open device\n");
goto out;
}
printf("opened device\n");
- r = libusb_devh_claim_intf(devh, 0);
+ r = libusb_claim_interface(devh, 0);
if (r < 0) {
fprintf(stderr, "usb_claim_interface error %d %s\n", r, strerror(-r));
goto out;
@@ -548,9 +548,9 @@ out_deinit:
set_mode(0);
set_hwstat(0x80);
out_release:
- libusb_devh_release_intf(devh, 0);
+ libusb_release_interface(devh, 0);
out:
- libusb_devh_close(devh);
+ libusb_close(devh);
libusb_exit();
return r >= 0 ? r : -r;
}