ia64/xen-unstable

annotate tools/vnet/libxutil/mem_stream.h @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 06d84bf87159
children
rev   line source
kaf24@6758 1 /*
kaf24@6758 2 * Copyright (C) 2005 Mike Wray <mike.wray@hp.com>
kaf24@6758 3 *
kaf24@6758 4 * This library is free software; you can redistribute it and/or modify
kaf24@6758 5 * it under the terms of the GNU Lesser General Public License as published by
kaf24@6758 6 * the Free Software Foundation; either version 2.1 of the License, or
kaf24@6758 7 * (at your option) any later version.
kaf24@6758 8 *
kaf24@6758 9 * This library is distributed in the hope that it will be useful,
kaf24@6758 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
kaf24@6758 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kaf24@6758 12 * GNU Lesser General Public License for more details.
kaf24@6758 13 *
kaf24@6758 14 * You should have received a copy of the GNU Lesser General Public License
kaf24@6758 15 * along with this library; if not, write to the Free Software
kaf24@6758 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
kaf24@6758 17 */
kaf24@6758 18
kaf24@6758 19 #ifndef _XUTIL_MEM_STREAM_H_
kaf24@6758 20 #define _XUTIL_MEM_STREAM_H_
kaf24@6758 21
kaf24@6758 22 #include "iostream.h"
kaf24@6758 23
kaf24@6758 24 extern IOStream *mem_stream_new_size(size_t buf_n, size_t buf_max);
kaf24@6758 25
kaf24@6758 26 extern int mem_stream_avail(IOStream *io);
kaf24@6758 27
kaf24@6758 28 static inline IOStream *mem_stream_new(void){
kaf24@6758 29 return mem_stream_new_size(0, 0);
kaf24@6758 30 }
kaf24@6758 31
kaf24@6758 32 #endif /* !_XUTIL_MEM_STREAM_H_ */