X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..d056fbdff1c5a26be055c38eee4c273ee6a0cba7:/sel/bres.3?ds=inline diff --git a/sel/bres.3 b/sel/bres.3 index ca58165..cce20c2 100644 --- a/sel/bres.3 +++ b/sel/bres.3 @@ -10,13 +10,17 @@ bres \- background name resolver .SH SYNOPSIS .nf .B "#include " - +.PP +.B "typedef struct { ...\& } bres_client;" +.PP +.ta \w'\fBvoid bres_byname('u .BI "void bres_byname(bres_client *" rc ", const char *" name , -.BI " void (*" func ")(struct hostent *" h ", void *" p ), -.BI " void *" p ); -.BI "void bres_byaddr(bres_client *" rc ", struct inaddr " addr , -.BI " void (*" func ")(struct hostent *" h ", void *" p ), -.BI " void *" p ); +.BI " void (*" func ")(struct hostent *" h ", void *" p ), +.BI " void *" p ); +.ta \w'\fBvoid bres_byaddr('u +.BI "void bres_byaddr(res_client *" rc ", struct inaddr " addr , +.BI " void (*" func ")(struct hostent *" h ", void *" p ), +.BI " void *" p ); .BI "void bres_abort(bres_client *" rc ); .BI "void bres_exec(const char *" file ); .BI "void bres_init(sel_state *" sel ); @@ -46,10 +50,11 @@ Each function is passed the following arguments: Pointer to the client block to initialize and store the resolver job's state. .TP -.BI "struct in_addr " addr "\fR (\fBbres_byaddr\fR)" -.sp -1 +.BR "struct in_addr " \fIaddr "" " (" bres_byaddr ) +.ie t .sp -0.4v +.el .sp -1v .TP -.BI "const char *" name "\fR (\fBbres_byname\fR)" +.BR "const char *" \fIname "" " (" bres_byname ) The IP address or hostname to resolve. .TP .BI "void (*" func ")(struct hostent *" h ", void *" p )