ia64/xen-unstable

view tools/libfsimage/common/fsimage_plugin.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 89ca591a2c21
children
line source
1 /*
2 * Permission is hereby granted, free of charge, to any person obtaining a copy
3 * of this software and associated documentation files (the "Software"), to
4 * deal in the Software without restriction, including without limitation the
5 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6 * sell copies of the Software, and to permit persons to whom the Software is
7 * furnished to do so, subject to the following conditions:
8 *
9 * The above copyright notice and this permission notice shall be included in
10 * all copies or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18 * DEALINGS IN THE SOFTWARE.
19 *
20 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
21 * Use is subject to license terms.
22 */
24 #ifndef _FSIMAGE_PLUGIN_H
25 #define _FSIMAGE_PLUGIN_H
27 #ifdef __cplusplus
28 extern C {
29 #endif
31 #include <sys/types.h>
33 #include "fsimage.h"
35 #define FSIMAGE_PLUGIN_VERSION 1
37 typedef struct fsi_plugin fsi_plugin_t;
39 typedef struct fsi_plugin_ops {
40 int fpo_version;
41 int (*fpo_mount)(fsi_t *, const char *, const char *);
42 int (*fpo_umount)(fsi_t *);
43 fsi_file_t *(*fpo_open)(fsi_t *, const char *);
44 ssize_t (*fpo_read)(fsi_file_t *, void *, size_t);
45 ssize_t (*fpo_pread)(fsi_file_t *, void *, size_t, uint64_t);
46 int (*fpo_close)(fsi_file_t *);
47 } fsi_plugin_ops_t;
49 typedef fsi_plugin_ops_t *
50 (*fsi_plugin_init_t)(int, fsi_plugin_t *, const char **);
52 void fsip_fs_set_data(fsi_t *, void *);
53 fsi_file_t *fsip_file_alloc(fsi_t *, void *);
54 void fsip_file_free(fsi_file_t *);
55 fsi_t *fsip_fs(fsi_file_t *);
56 uint64_t fsip_fs_offset(fsi_t *);
57 void *fsip_fs_data(fsi_t *);
58 void *fsip_file_data(fsi_file_t *);
60 #ifdef __cplusplus
61 };
62 #endif
64 #endif /* _FSIMAGE_PLUGIN_H */