projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
852bba4
)
Add API to access poll fd
author
Daniel Drake
<dsd@gentoo.org>
Sun, 2 Dec 2007 23:16:57 +0000
(23:16 +0000)
committer
Daniel Drake
<dsd@gentoo.org>
Sun, 2 Dec 2007 23:16:57 +0000
(23:16 +0000)
Almost forgot... :)
libfpusb/fpusb.h
patch
|
blob
|
history
libfpusb/io.c
patch
|
blob
|
history
diff --git
a/libfpusb/fpusb.h
b/libfpusb/fpusb.h
index 1968507a7d49569b2603039fb43f507babbebeb4..bc279c1b74a91f2d1acde050475fcb5515136795 100644
(file)
--- a/
libfpusb/fpusb.h
+++ b/
libfpusb/fpusb.h
@@
-186,6
+186,7
@@
void fpusb_urb_handle_free(fpusb_urb_handle *urbh);
int fpusb_poll_timeout(struct timeval *tv);
int fpusb_poll(void);
+int fpusb_get_pollfd(void);
/* sync I/O */
diff --git
a/libfpusb/io.c
b/libfpusb/io.c
index fc802b6130de52299009ca7794adcdf720e54bfd..88a83e872dfbfd01af5c7d489f1ed4c79ee32dee 100644
(file)
--- a/
libfpusb/io.c
+++ b/
libfpusb/io.c
@@
-698,3
+698,8
@@
API_EXPORTED void fpusb_urb_handle_free(struct fpusb_urb_handle *urbh)
free(urbh);
}
+API_EXPORTED int fpusb_get_pollfd(void)
+{
+ return sigfd;
+}
+