#include <usb.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string>
#include <barry/common.h>
Go to the source code of this file.
Cycles through all devices attached to USB, attempting to set all matching Blackberry devices to charge.
This file is part of the Barry project:
http://www.netdirect.ca/software/packages/barry/index.php http://sourceforge.net/projects/barry
Compile with the following command (needs libusb):
g++ -o bcharge bcharge.cc -lusb
Definition in file bcharge.cc.