ia64/xen-unstable

view tools/vnet/libxutil/mem_stream.h @ 6854:9af349b055e5

Merge latest xen-unstable into xen-ia64-unstable to prep
for push back to xen-unstable
author djm@kirby.fc.hp.com
date Wed Sep 14 15:36:10 2005 -0600 (2005-09-14)
parents b35215021b32 219d96d545fc
children 3233e7ecfa9f 06d84bf87159
line source
1 /*
2 * Copyright (C) 2005 Mike Wray <mike.wray@hp.com>
3 *
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
19 #ifndef _XUTIL_MEM_STREAM_H_
20 #define _XUTIL_MEM_STREAM_H_
22 #include "iostream.h"
24 extern IOStream *mem_stream_new_size(size_t buf_n, size_t buf_max);
26 extern int mem_stream_avail(IOStream *io);
28 static inline IOStream *mem_stream_new(void){
29 return mem_stream_new_size(0, 0);
30 }
32 #endif /* !_XUTIL_MEM_STREAM_H_ */