X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/e03be5f4f70614fea2479741cb54cd411be963f8..8f45ff6cb9a269fc6f8f631908f93b4c8123419c:/selbuf.h diff --git a/selbuf.h b/selbuf.h index 65eea4e..1ce4a75 100644 --- a/selbuf.h +++ b/selbuf.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: selbuf.h,v 1.3 2000/06/17 10:38:14 mdw Exp $ + * $Id: selbuf.h,v 1.5 2004/04/08 01:36:13 mdw Exp $ * * Line-buffering select handler * * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,32 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * mLib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: selbuf.h,v $ - * Revision 1.3 2000/06/17 10:38:14 mdw - * Add support for variable buffer sizes. - * - * Revision 1.2 1999/12/10 23:42:04 mdw - * Change header file guard names. - * - * Revision 1.1 1999/05/14 21:01:15 mdw - * Integrated `select' handling bits from the background resolver project. - * - */ - #ifndef MLIB_SELBUF_H #define MLIB_SELBUF_H @@ -108,7 +94,7 @@ extern void selbuf_setsize(selbuf */*b*/, size_t /*sz*/); * Arguments: @selbuf *b@ = pointer to buffer block * @sel_state *s@ = pointer to select state to attach to * @int fd@ = file descriptor to listen to - * @void (*func)(char *s, void *p)@ = function to call + * @lbuf_func *func@ = function to call * @void *p@ = argument for function * * Returns: --- @@ -116,11 +102,8 @@ extern void selbuf_setsize(selbuf */*b*/, size_t /*sz*/); * Use: Initializes a buffer block. */ -extern void selbuf_init(selbuf */*b*/, - sel_state */*s*/, - int /*fd*/, - void (*/*func*/)(char */*s*/, void */*p*/), - void */*p*/); +extern void selbuf_init(selbuf */*b*/, sel_state */*s*/, int /*fd*/, + lbuf_func */*func*/, void */*p*/); /* --- @selbuf_destroy@ --- * *