Packet handler functions now have a @typedef@ name.
[mLib] / man / selpk.3
index 1163d69..665a883 100644 (file)
@@ -14,12 +14,8 @@ selpk \- packet-buffering input selector
 .BI "void selpk_enable(selpk *" pk );
 .BI "void selpk_disable(selpk *" pk );
 .BI "void selpk_want(selpk *" pk ", size_t " sz );
-.BI "void selpk_init(selpk *" pk ,
-.BI "                sel_state *" s ,
-.BI "                int " fd ,
-.BI "                void (*" func ")(octet *" b ", size_t " sz ", pkbuf *" pk ,
-.BI "                                 size_t *" keep ", void *" p ),
-.BI "                void *" p );
+.BI "void selpk_init(selpk *" pk ", sel_state *" s ", int " fd ,
+.BI "                pkbuf *" func ", void *" p );
 .BI "void selpk_destroy(selpk *" b );
 .fi
 .SH DESCRIPTION
@@ -57,18 +53,17 @@ for more details about multiplexors, and how this whole system works.
 .BI "int " fd
 The file descriptor of the stream the selector should read from.
 .TP
-.nf
-.BI "void (*" func ")(octet *" b ", size_t " sz ", pkbuf *" p ,
-.BI "      size_t *" keep ", void *" p )
-.fi
+.BI "pkbuf_func *" func
 The
 .I "packet handler"
-function.  It is passed a pointer to each packet read from the file (or
+function.  It is given a pointer to each packet read from the file (or
 null to indicate end-of-file) and an arbitrary pointer (the
 .I p
 argument to
 .B selpk_init
-described below).
+described below).  See
+.BR pkbuf (3)
+for full details.
 .TP
 .BI "void *" p
 A pointer argument passed to