diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-24 03:43:05 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-24 03:43:05 +0000 |
commit | f1a1841fd46d19db9e9c9715c72e7253c6821208 (patch) | |
tree | f4792f6be15577c3da25ef086c5ab15d262ccb99 /lib/libusb20/libusb20_int.h | |
parent | 8041f6f6948e9212d22713bd2c0c2bec494e144c (diff) | |
download | FreeBSD-src-f1a1841fd46d19db9e9c9715c72e7253c6821208.zip FreeBSD-src-f1a1841fd46d19db9e9c9715c72e7253c6821208.tar.gz |
MFp4 //depot/projects/usb@157974
Add support for setting and getting the USB template value through libusb20 and
usbconfig.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'lib/libusb20/libusb20_int.h')
-rw-r--r-- | lib/libusb20/libusb20_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libusb20/libusb20_int.h b/lib/libusb20/libusb20_int.h index 5e89bfe..b65aac0 100644 --- a/lib/libusb20/libusb20_int.h +++ b/lib/libusb20/libusb20_int.h @@ -70,6 +70,8 @@ typedef int (libusb20_root_get_perm_t)(struct libusb20_backend *pbe, mode_t *mod typedef int (libusb20_root_set_owner_t)(struct libusb20_backend *pbe, uid_t user, gid_t group); typedef int (libusb20_root_set_perm_t)(struct libusb20_backend *pbe, mode_t mode); typedef void (libusb20_exit_backend_t)(struct libusb20_backend *pbe); +typedef int (libusb20_root_set_template_t)(struct libusb20_backend *pbe, int temp); +typedef int (libusb20_root_get_template_t)(struct libusb20_backend *pbe, int *ptemp); #define LIBUSB20_DEFINE(n,field) \ libusb20_##field##_t *field; @@ -105,6 +107,8 @@ typedef void (libusb20_exit_backend_t)(struct libusb20_backend *pbe); m(n, root_get_owner) \ m(n, root_set_perm) \ m(n, root_get_perm) \ + m(n, root_set_template) \ + m(n, root_get_template) \ /* mandatory device methods */ \ m(n, open_device) \ m(n, close_device) \ |