ia64/xen-unstable

diff tools/vnet/libxutil/mem_stream.h @ 6797:b35215021b32

Merge with latest xen-unstable
author djm@kirby.fc.hp.com
date Tue Sep 13 10:14:16 2005 -0600 (2005-09-13)
parents 219d96d545fc
children 9af349b055e5
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/vnet/libxutil/mem_stream.h	Tue Sep 13 10:14:16 2005 -0600
     1.3 @@ -0,0 +1,32 @@
     1.4 +/*
     1.5 + * Copyright (C) 2005 Mike Wray <mike.wray@hp.com>
     1.6 + *
     1.7 + * This library is free software; you can redistribute it and/or modify
     1.8 + * it under the terms of the GNU Lesser General Public License as published by
     1.9 + * the Free Software Foundation; either version 2.1 of the License, or
    1.10 + * (at your option) any later version.
    1.11 + *
    1.12 + * This library is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 + * GNU Lesser General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU Lesser General Public License
    1.18 + * along with this library; if not, write to the Free Software
    1.19 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.20 + */
    1.21 +
    1.22 +#ifndef _XUTIL_MEM_STREAM_H_
    1.23 +#define _XUTIL_MEM_STREAM_H_
    1.24 +
    1.25 +#include "iostream.h"
    1.26 +
    1.27 +extern IOStream *mem_stream_new_size(size_t buf_n, size_t buf_max);
    1.28 +
    1.29 +extern int mem_stream_avail(IOStream *io);
    1.30 +
    1.31 +static inline IOStream *mem_stream_new(void){
    1.32 +    return mem_stream_new_size(0, 0);
    1.33 +}
    1.34 +
    1.35 +#endif /* !_XUTIL_MEM_STREAM_H_ */