X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/fbf20b5bd30e237c383ed290428261f28dfa5803..419895bb703f5cba6fc86d56277abdc4e6b28330:/man/selbuf.3 diff --git a/man/selbuf.3 b/man/selbuf.3 index cc7c884..5ff9f28 100644 --- a/man/selbuf.3 +++ b/man/selbuf.3 @@ -14,11 +14,8 @@ selbuf \- line-buffering input selector .BI "void selbuf_enable(selbuf *" b ); .BI "void selbuf_disable(selbuf *" b ); .BI "void selbuf_setsize(selbuf *" b ", size_t " sz ); -.BI "void selbuf_init(selbuf *" b , -.BI " sel_state *" s , -.BI " int " fd , -.BI " void (*" func ")(char *" s ", void *" p ), -.BI " void *" p ); +.BI "void selbuf_init(selbuf *" b ", sel_state *" s ", int " fd , +.BI " lbuf_func *" func ", void *" p ); .BI "void selbuf_destroy(selbuf *" b ); .fi .SH DESCRIPTION @@ -56,15 +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 -.BI "void (*" func ")(char *" s ", void *" p ) +.BI "lbuf_func *" func The .I "line handler" function. It is passed a pointer to each line read from the file (or -null to indicate end-of-file) and an arbitrary pointer (the +null to indicate end-of-file), the length of the line, and an arbitrary +pointer (the .I p argument to .B selbuf_init -described below). +described below). For full details, see +.BR lbuf (3). .TP .BI "void *" p A pointer argument passed to