MAJOR: polling: remove unused callbacks from the poller struct
Since no poller uses poller->{set,clr,wai,is_set,rem} anymore, let's
remove them and remove the associated pointer tests in proto/fd.h.
diff --git a/include/types/fd.h b/include/types/fd.h
index fab0c6c..56a8c5c 100644
--- a/include/types/fd.h
+++ b/include/types/fd.h
@@ -92,18 +92,12 @@
* poller should set it to 100.
* - <private> is initialized by the poller's init() function, and cleaned by
* the term() function.
- * - clo() should be used to do indicate the poller that fd will be closed. It
- * may be the same as rem() on some pollers.
+ * - clo() should be used to do indicate the poller that fd will be closed.
* - poll() calls the poller, expiring at <exp>
*/
struct poller {
void *private; /* any private data for the poller */
- int REGPRM2 (*is_set)(const int fd, int dir); /* check if <fd> is being polled for dir <dir> */
- void REGPRM2 (*set)(const int fd, int dir); /* set polling on <fd> for <dir> */
- void REGPRM2 (*clr)(const int fd, int dir); /* clear polling on <fd> for <dir> */
- void REGPRM2 (*wai)(const int fd, int dir); /* wait for polling on <fd> for <dir> */
- void REGPRM1 (*rem)(const int fd); /* remove any polling on <fd> */
- void REGPRM1 (*clo)(const int fd); /* mark <fd> as closed */
+ void REGPRM1 (*clo)(const int fd); /* mark <fd> as closed */
void REGPRM2 (*poll)(struct poller *p, int exp); /* the poller itself */
int REGPRM1 (*init)(struct poller *p); /* poller initialization */
void REGPRM1 (*term)(struct poller *p); /* termination of this poller */