chiark / gitweb /
Various Debian fixes.
[mLib] / man / selpk.3
index 57574fba8a773a230aab246aaa565df9040a6cf0..6502803d94dda27056a4ad89f4b236c00505fb3d 100644 (file)
@@ -1,5 +1,5 @@
 .\" -*-nroff-*-
-.TH selpk 3 "23 May 1999" mLib
+.TH selpk 3 "23 May 1999" "Straylight/Edgeware" "mLib utilities library"
 .SH NAME
 selpk \- packet-buffering input selector
 .\" @selpk_enable
@@ -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 *" 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