Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
f48160cf
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f48160cf
编写于
2月 20, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add remote daemon support for storage APIs
上级
056da31b
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
2268 addition
and
1 deletion
+2268
-1
ChangeLog
ChangeLog
+8
-0
qemud/remote.c
qemud/remote.c
+732
-0
qemud/remote_dispatch_localvars.h
qemud/remote_dispatch_localvars.h
+48
-0
qemud/remote_dispatch_proc_switch.h
qemud/remote_dispatch_proc_switch.h
+231
-0
qemud/remote_dispatch_prototypes.h
qemud/remote_dispatch_prototypes.h
+29
-0
qemud/remote_protocol.c
qemud/remote_protocol.c
+518
-0
qemud/remote_protocol.h
qemud/remote_protocol.h
+421
-0
qemud/remote_protocol.x
qemud/remote_protocol.x
+281
-1
未找到文件。
ChangeLog
浏览文件 @
f48160cf
Wed Feb 20 10:17:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* qemud/remote.c: Add binding for storage APIs
* qemud/remote_protcol.x: Add wire format definition for storage
APIs
* qemud/remote_protocol.{c,h}: Re-generated
* qemud/remote_dispatch*: Re-generated
Wed Feb 20 10:15:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* docs/libvirt-api.xml, docs/libvirt-refs.xml, docs/devhelp/*:
...
...
qemud/remote.c
浏览文件 @
f48160cf
此差异已折叠。
点击以展开。
qemud/remote_dispatch_localvars.h
浏览文件 @
f48160cf
...
...
@@ -4,10 +4,14 @@
remote_domain_lookup_by_uuid_args
lv_remote_domain_lookup_by_uuid_args
;
remote_domain_lookup_by_uuid_ret
lv_remote_domain_lookup_by_uuid_ret
;
remote_storage_pool_list_volumes_args
lv_remote_storage_pool_list_volumes_args
;
remote_storage_pool_list_volumes_ret
lv_remote_storage_pool_list_volumes_ret
;
remote_domain_shutdown_args
lv_remote_domain_shutdown_args
;
remote_list_defined_domains_args
lv_remote_list_defined_domains_args
;
remote_list_defined_domains_ret
lv_remote_list_defined_domains_ret
;
remote_get_capabilities_ret
lv_remote_get_capabilities_ret
;
remote_storage_vol_create_xml_args
lv_remote_storage_vol_create_xml_args
;
remote_storage_vol_create_xml_ret
lv_remote_storage_vol_create_xml_ret
;
remote_domain_set_max_memory_args
lv_remote_domain_set_max_memory_args
;
remote_auth_sasl_init_ret
lv_remote_auth_sasl_init_ret
;
remote_domain_get_os_type_args
lv_remote_domain_get_os_type_args
;
...
...
@@ -19,21 +23,30 @@ remote_get_hostname_ret lv_remote_get_hostname_ret;
remote_network_undefine_args
lv_remote_network_undefine_args
;
remote_domain_create_args
lv_remote_domain_create_args
;
remote_network_destroy_args
lv_remote_network_destroy_args
;
remote_storage_vol_lookup_by_key_args
lv_remote_storage_vol_lookup_by_key_args
;
remote_storage_vol_lookup_by_key_ret
lv_remote_storage_vol_lookup_by_key_ret
;
remote_storage_pool_lookup_by_uuid_args
lv_remote_storage_pool_lookup_by_uuid_args
;
remote_storage_pool_lookup_by_uuid_ret
lv_remote_storage_pool_lookup_by_uuid_ret
;
remote_domain_pin_vcpu_args
lv_remote_domain_pin_vcpu_args
;
remote_list_defined_networks_args
lv_remote_list_defined_networks_args
;
remote_list_defined_networks_ret
lv_remote_list_defined_networks_ret
;
remote_network_create_xml_args
lv_remote_network_create_xml_args
;
remote_network_create_xml_ret
lv_remote_network_create_xml_ret
;
remote_open_args
lv_remote_open_args
;
remote_storage_pool_refresh_args
lv_remote_storage_pool_refresh_args
;
remote_storage_vol_lookup_by_path_args
lv_remote_storage_vol_lookup_by_path_args
;
remote_storage_vol_lookup_by_path_ret
lv_remote_storage_vol_lookup_by_path_ret
;
remote_list_domains_args
lv_remote_list_domains_args
;
remote_list_domains_ret
lv_remote_list_domains_ret
;
remote_network_define_xml_args
lv_remote_network_define_xml_args
;
remote_network_define_xml_ret
lv_remote_network_define_xml_ret
;
remote_get_type_ret
lv_remote_get_type_ret
;
remote_storage_vol_delete_args
lv_remote_storage_vol_delete_args
;
remote_network_dump_xml_args
lv_remote_network_dump_xml_args
;
remote_network_dump_xml_ret
lv_remote_network_dump_xml_ret
;
remote_domain_reboot_args
lv_remote_domain_reboot_args
;
remote_domain_set_memory_args
lv_remote_domain_set_memory_args
;
remote_storage_pool_destroy_args
lv_remote_storage_pool_destroy_args
;
remote_domain_create_linux_args
lv_remote_domain_create_linux_args
;
remote_domain_create_linux_ret
lv_remote_domain_create_linux_ret
;
remote_domain_set_scheduler_parameters_args
lv_remote_domain_set_scheduler_parameters_args
;
...
...
@@ -42,14 +55,25 @@ remote_auth_sasl_start_args lv_remote_auth_sasl_start_args;
remote_auth_sasl_start_ret
lv_remote_auth_sasl_start_ret
;
remote_domain_interface_stats_args
lv_remote_domain_interface_stats_args
;
remote_domain_interface_stats_ret
lv_remote_domain_interface_stats_ret
;
remote_storage_pool_dump_xml_args
lv_remote_storage_pool_dump_xml_args
;
remote_storage_pool_dump_xml_ret
lv_remote_storage_pool_dump_xml_ret
;
remote_storage_pool_create_xml_args
lv_remote_storage_pool_create_xml_args
;
remote_storage_pool_create_xml_ret
lv_remote_storage_pool_create_xml_ret
;
remote_storage_pool_build_args
lv_remote_storage_pool_build_args
;
remote_storage_pool_delete_args
lv_remote_storage_pool_delete_args
;
remote_storage_pool_lookup_by_volume_args
lv_remote_storage_pool_lookup_by_volume_args
;
remote_storage_pool_lookup_by_volume_ret
lv_remote_storage_pool_lookup_by_volume_ret
;
remote_domain_get_max_vcpus_args
lv_remote_domain_get_max_vcpus_args
;
remote_domain_get_max_vcpus_ret
lv_remote_domain_get_max_vcpus_ret
;
remote_domain_get_info_args
lv_remote_domain_get_info_args
;
remote_domain_get_info_ret
lv_remote_domain_get_info_ret
;
remote_storage_pool_num_of_volumes_args
lv_remote_storage_pool_num_of_volumes_args
;
remote_storage_pool_num_of_volumes_ret
lv_remote_storage_pool_num_of_volumes_ret
;
remote_supports_feature_args
lv_remote_supports_feature_args
;
remote_supports_feature_ret
lv_remote_supports_feature_ret
;
remote_domain_lookup_by_name_args
lv_remote_domain_lookup_by_name_args
;
remote_domain_lookup_by_name_ret
lv_remote_domain_lookup_by_name_ret
;
remote_storage_pool_set_autostart_args
lv_remote_storage_pool_set_autostart_args
;
remote_domain_resume_args
lv_remote_domain_resume_args
;
remote_network_get_bridge_name_args
lv_remote_network_get_bridge_name_args
;
remote_network_get_bridge_name_ret
lv_remote_network_get_bridge_name_ret
;
...
...
@@ -69,6 +93,7 @@ remote_num_of_defined_domains_ret lv_remote_num_of_defined_domains_ret;
remote_domain_block_stats_args
lv_remote_domain_block_stats_args
;
remote_domain_block_stats_ret
lv_remote_domain_block_stats_ret
;
remote_domain_detach_device_args
lv_remote_domain_detach_device_args
;
remote_num_of_storage_pools_ret
lv_remote_num_of_storage_pools_ret
;
remote_domain_save_args
lv_remote_domain_save_args
;
remote_domain_migrate_prepare_args
lv_remote_domain_migrate_prepare_args
;
remote_domain_migrate_prepare_ret
lv_remote_domain_migrate_prepare_ret
;
...
...
@@ -77,28 +102,51 @@ remote_domain_get_scheduler_type_args lv_remote_domain_get_scheduler_type_args;
remote_domain_get_scheduler_type_ret
lv_remote_domain_get_scheduler_type_ret
;
remote_get_version_ret
lv_remote_get_version_ret
;
remote_domain_suspend_args
lv_remote_domain_suspend_args
;
remote_storage_pool_lookup_by_name_args
lv_remote_storage_pool_lookup_by_name_args
;
remote_storage_pool_lookup_by_name_ret
lv_remote_storage_pool_lookup_by_name_ret
;
remote_network_set_autostart_args
lv_remote_network_set_autostart_args
;
remote_network_get_autostart_args
lv_remote_network_get_autostart_args
;
remote_network_get_autostart_ret
lv_remote_network_get_autostart_ret
;
remote_storage_pool_create_args
lv_remote_storage_pool_create_args
;
remote_auth_list_ret
lv_remote_auth_list_ret
;
remote_num_of_defined_storage_pools_ret
lv_remote_num_of_defined_storage_pools_ret
;
remote_domain_core_dump_args
lv_remote_domain_core_dump_args
;
remote_list_defined_storage_pools_args
lv_remote_list_defined_storage_pools_args
;
remote_list_defined_storage_pools_ret
lv_remote_list_defined_storage_pools_ret
;
remote_domain_get_max_memory_args
lv_remote_domain_get_max_memory_args
;
remote_domain_get_max_memory_ret
lv_remote_domain_get_max_memory_ret
;
remote_num_of_domains_ret
lv_remote_num_of_domains_ret
;
remote_list_networks_args
lv_remote_list_networks_args
;
remote_list_networks_ret
lv_remote_list_networks_ret
;
remote_storage_pool_undefine_args
lv_remote_storage_pool_undefine_args
;
remote_domain_set_autostart_args
lv_remote_domain_set_autostart_args
;
remote_storage_pool_get_autostart_args
lv_remote_storage_pool_get_autostart_args
;
remote_storage_pool_get_autostart_ret
lv_remote_storage_pool_get_autostart_ret
;
remote_storage_vol_get_path_args
lv_remote_storage_vol_get_path_args
;
remote_storage_vol_get_path_ret
lv_remote_storage_vol_get_path_ret
;
remote_domain_lookup_by_id_args
lv_remote_domain_lookup_by_id_args
;
remote_domain_lookup_by_id_ret
lv_remote_domain_lookup_by_id_ret
;
remote_domain_attach_device_args
lv_remote_domain_attach_device_args
;
remote_num_of_networks_ret
lv_remote_num_of_networks_ret
;
remote_storage_pool_get_info_args
lv_remote_storage_pool_get_info_args
;
remote_storage_pool_get_info_ret
lv_remote_storage_pool_get_info_ret
;
remote_list_storage_pools_args
lv_remote_list_storage_pools_args
;
remote_list_storage_pools_ret
lv_remote_list_storage_pools_ret
;
remote_domain_restore_args
lv_remote_domain_restore_args
;
remote_network_create_args
lv_remote_network_create_args
;
remote_num_of_defined_networks_ret
lv_remote_num_of_defined_networks_ret
;
remote_storage_vol_lookup_by_name_args
lv_remote_storage_vol_lookup_by_name_args
;
remote_storage_vol_lookup_by_name_ret
lv_remote_storage_vol_lookup_by_name_ret
;
remote_storage_pool_define_xml_args
lv_remote_storage_pool_define_xml_args
;
remote_storage_pool_define_xml_ret
lv_remote_storage_pool_define_xml_ret
;
remote_network_lookup_by_uuid_args
lv_remote_network_lookup_by_uuid_args
;
remote_network_lookup_by_uuid_ret
lv_remote_network_lookup_by_uuid_ret
;
remote_storage_vol_get_info_args
lv_remote_storage_vol_get_info_args
;
remote_storage_vol_get_info_ret
lv_remote_storage_vol_get_info_ret
;
remote_domain_define_xml_args
lv_remote_domain_define_xml_args
;
remote_domain_define_xml_ret
lv_remote_domain_define_xml_ret
;
remote_storage_vol_dump_xml_args
lv_remote_storage_vol_dump_xml_args
;
remote_storage_vol_dump_xml_ret
lv_remote_storage_vol_dump_xml_ret
;
remote_domain_dump_xml_args
lv_remote_domain_dump_xml_args
;
remote_domain_dump_xml_ret
lv_remote_domain_dump_xml_ret
;
remote_get_max_vcpus_args
lv_remote_get_max_vcpus_args
;
...
...
qemud/remote_dispatch_proc_switch.h
浏览文件 @
f48160cf
...
...
@@ -368,6 +368,15 @@ case REMOTE_PROC_LIST_DEFINED_NETWORKS:
ret
=
(
char
*
)
&
lv_remote_list_defined_networks_ret
;
memset
(
&
lv_remote_list_defined_networks_ret
,
0
,
sizeof
lv_remote_list_defined_networks_ret
);
break
;
case
REMOTE_PROC_LIST_DEFINED_STORAGE_POOLS
:
fn
=
(
dispatch_fn
)
remoteDispatchListDefinedStoragePools
;
args_filter
=
(
xdrproc_t
)
xdr_remote_list_defined_storage_pools_args
;
args
=
(
char
*
)
&
lv_remote_list_defined_storage_pools_args
;
memset
(
&
lv_remote_list_defined_storage_pools_args
,
0
,
sizeof
lv_remote_list_defined_storage_pools_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_list_defined_storage_pools_ret
;
ret
=
(
char
*
)
&
lv_remote_list_defined_storage_pools_ret
;
memset
(
&
lv_remote_list_defined_storage_pools_ret
,
0
,
sizeof
lv_remote_list_defined_storage_pools_ret
);
break
;
case
REMOTE_PROC_LIST_DOMAINS
:
fn
=
(
dispatch_fn
)
remoteDispatchListDomains
;
args_filter
=
(
xdrproc_t
)
xdr_remote_list_domains_args
;
...
...
@@ -386,6 +395,15 @@ case REMOTE_PROC_LIST_NETWORKS:
ret
=
(
char
*
)
&
lv_remote_list_networks_ret
;
memset
(
&
lv_remote_list_networks_ret
,
0
,
sizeof
lv_remote_list_networks_ret
);
break
;
case
REMOTE_PROC_LIST_STORAGE_POOLS
:
fn
=
(
dispatch_fn
)
remoteDispatchListStoragePools
;
args_filter
=
(
xdrproc_t
)
xdr_remote_list_storage_pools_args
;
args
=
(
char
*
)
&
lv_remote_list_storage_pools_args
;
memset
(
&
lv_remote_list_storage_pools_args
,
0
,
sizeof
lv_remote_list_storage_pools_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_list_storage_pools_ret
;
ret
=
(
char
*
)
&
lv_remote_list_storage_pools_ret
;
memset
(
&
lv_remote_list_storage_pools_ret
,
0
,
sizeof
lv_remote_list_storage_pools_ret
);
break
;
case
REMOTE_PROC_NETWORK_CREATE
:
fn
=
(
dispatch_fn
)
remoteDispatchNetworkCreate
;
args_filter
=
(
xdrproc_t
)
xdr_remote_network_create_args
;
...
...
@@ -491,6 +509,12 @@ case REMOTE_PROC_NUM_OF_DEFINED_NETWORKS:
ret
=
(
char
*
)
&
lv_remote_num_of_defined_networks_ret
;
memset
(
&
lv_remote_num_of_defined_networks_ret
,
0
,
sizeof
lv_remote_num_of_defined_networks_ret
);
break
;
case
REMOTE_PROC_NUM_OF_DEFINED_STORAGE_POOLS
:
fn
=
(
dispatch_fn
)
remoteDispatchNumOfDefinedStoragePools
;
ret_filter
=
(
xdrproc_t
)
xdr_remote_num_of_defined_storage_pools_ret
;
ret
=
(
char
*
)
&
lv_remote_num_of_defined_storage_pools_ret
;
memset
(
&
lv_remote_num_of_defined_storage_pools_ret
,
0
,
sizeof
lv_remote_num_of_defined_storage_pools_ret
);
break
;
case
REMOTE_PROC_NUM_OF_DOMAINS
:
fn
=
(
dispatch_fn
)
remoteDispatchNumOfDomains
;
ret_filter
=
(
xdrproc_t
)
xdr_remote_num_of_domains_ret
;
...
...
@@ -503,12 +527,219 @@ case REMOTE_PROC_NUM_OF_NETWORKS:
ret
=
(
char
*
)
&
lv_remote_num_of_networks_ret
;
memset
(
&
lv_remote_num_of_networks_ret
,
0
,
sizeof
lv_remote_num_of_networks_ret
);
break
;
case
REMOTE_PROC_NUM_OF_STORAGE_POOLS
:
fn
=
(
dispatch_fn
)
remoteDispatchNumOfStoragePools
;
ret_filter
=
(
xdrproc_t
)
xdr_remote_num_of_storage_pools_ret
;
ret
=
(
char
*
)
&
lv_remote_num_of_storage_pools_ret
;
memset
(
&
lv_remote_num_of_storage_pools_ret
,
0
,
sizeof
lv_remote_num_of_storage_pools_ret
);
break
;
case
REMOTE_PROC_OPEN
:
fn
=
(
dispatch_fn
)
remoteDispatchOpen
;
args_filter
=
(
xdrproc_t
)
xdr_remote_open_args
;
args
=
(
char
*
)
&
lv_remote_open_args
;
memset
(
&
lv_remote_open_args
,
0
,
sizeof
lv_remote_open_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_BUILD
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolBuild
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_build_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_build_args
;
memset
(
&
lv_remote_storage_pool_build_args
,
0
,
sizeof
lv_remote_storage_pool_build_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_CREATE
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolCreate
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_create_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_create_args
;
memset
(
&
lv_remote_storage_pool_create_args
,
0
,
sizeof
lv_remote_storage_pool_create_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_CREATE_XML
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolCreateXml
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_create_xml_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_create_xml_args
;
memset
(
&
lv_remote_storage_pool_create_xml_args
,
0
,
sizeof
lv_remote_storage_pool_create_xml_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_create_xml_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_create_xml_ret
;
memset
(
&
lv_remote_storage_pool_create_xml_ret
,
0
,
sizeof
lv_remote_storage_pool_create_xml_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_DEFINE_XML
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolDefineXml
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_define_xml_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_define_xml_args
;
memset
(
&
lv_remote_storage_pool_define_xml_args
,
0
,
sizeof
lv_remote_storage_pool_define_xml_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_define_xml_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_define_xml_ret
;
memset
(
&
lv_remote_storage_pool_define_xml_ret
,
0
,
sizeof
lv_remote_storage_pool_define_xml_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_DELETE
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolDelete
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_delete_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_delete_args
;
memset
(
&
lv_remote_storage_pool_delete_args
,
0
,
sizeof
lv_remote_storage_pool_delete_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_DESTROY
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolDestroy
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_destroy_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_destroy_args
;
memset
(
&
lv_remote_storage_pool_destroy_args
,
0
,
sizeof
lv_remote_storage_pool_destroy_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_DUMP_XML
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolDumpXml
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_dump_xml_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_dump_xml_args
;
memset
(
&
lv_remote_storage_pool_dump_xml_args
,
0
,
sizeof
lv_remote_storage_pool_dump_xml_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_dump_xml_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_dump_xml_ret
;
memset
(
&
lv_remote_storage_pool_dump_xml_ret
,
0
,
sizeof
lv_remote_storage_pool_dump_xml_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolGetAutostart
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_get_autostart_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_get_autostart_args
;
memset
(
&
lv_remote_storage_pool_get_autostart_args
,
0
,
sizeof
lv_remote_storage_pool_get_autostart_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_get_autostart_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_get_autostart_ret
;
memset
(
&
lv_remote_storage_pool_get_autostart_ret
,
0
,
sizeof
lv_remote_storage_pool_get_autostart_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_GET_INFO
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolGetInfo
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_get_info_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_get_info_args
;
memset
(
&
lv_remote_storage_pool_get_info_args
,
0
,
sizeof
lv_remote_storage_pool_get_info_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_get_info_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_get_info_ret
;
memset
(
&
lv_remote_storage_pool_get_info_ret
,
0
,
sizeof
lv_remote_storage_pool_get_info_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolListVolumes
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_list_volumes_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_list_volumes_args
;
memset
(
&
lv_remote_storage_pool_list_volumes_args
,
0
,
sizeof
lv_remote_storage_pool_list_volumes_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_list_volumes_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_list_volumes_ret
;
memset
(
&
lv_remote_storage_pool_list_volumes_ret
,
0
,
sizeof
lv_remote_storage_pool_list_volumes_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolLookupByName
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_name_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_name_args
;
memset
(
&
lv_remote_storage_pool_lookup_by_name_args
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_name_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_name_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_name_ret
;
memset
(
&
lv_remote_storage_pool_lookup_by_name_ret
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_name_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolLookupByUuid
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_uuid_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_uuid_args
;
memset
(
&
lv_remote_storage_pool_lookup_by_uuid_args
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_uuid_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_uuid_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_uuid_ret
;
memset
(
&
lv_remote_storage_pool_lookup_by_uuid_ret
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_uuid_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolLookupByVolume
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_volume_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_volume_args
;
memset
(
&
lv_remote_storage_pool_lookup_by_volume_args
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_volume_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_lookup_by_volume_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_lookup_by_volume_ret
;
memset
(
&
lv_remote_storage_pool_lookup_by_volume_ret
,
0
,
sizeof
lv_remote_storage_pool_lookup_by_volume_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolNumOfVolumes
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_num_of_volumes_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_num_of_volumes_args
;
memset
(
&
lv_remote_storage_pool_num_of_volumes_args
,
0
,
sizeof
lv_remote_storage_pool_num_of_volumes_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_num_of_volumes_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_pool_num_of_volumes_ret
;
memset
(
&
lv_remote_storage_pool_num_of_volumes_ret
,
0
,
sizeof
lv_remote_storage_pool_num_of_volumes_ret
);
break
;
case
REMOTE_PROC_STORAGE_POOL_REFRESH
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolRefresh
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_refresh_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_refresh_args
;
memset
(
&
lv_remote_storage_pool_refresh_args
,
0
,
sizeof
lv_remote_storage_pool_refresh_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolSetAutostart
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_set_autostart_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_set_autostart_args
;
memset
(
&
lv_remote_storage_pool_set_autostart_args
,
0
,
sizeof
lv_remote_storage_pool_set_autostart_args
);
break
;
case
REMOTE_PROC_STORAGE_POOL_UNDEFINE
:
fn
=
(
dispatch_fn
)
remoteDispatchStoragePoolUndefine
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_pool_undefine_args
;
args
=
(
char
*
)
&
lv_remote_storage_pool_undefine_args
;
memset
(
&
lv_remote_storage_pool_undefine_args
,
0
,
sizeof
lv_remote_storage_pool_undefine_args
);
break
;
case
REMOTE_PROC_STORAGE_VOL_CREATE_XML
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolCreateXml
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_create_xml_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_create_xml_args
;
memset
(
&
lv_remote_storage_vol_create_xml_args
,
0
,
sizeof
lv_remote_storage_vol_create_xml_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_create_xml_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_create_xml_ret
;
memset
(
&
lv_remote_storage_vol_create_xml_ret
,
0
,
sizeof
lv_remote_storage_vol_create_xml_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_DELETE
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolDelete
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_delete_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_delete_args
;
memset
(
&
lv_remote_storage_vol_delete_args
,
0
,
sizeof
lv_remote_storage_vol_delete_args
);
break
;
case
REMOTE_PROC_STORAGE_VOL_DUMP_XML
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolDumpXml
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_dump_xml_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_dump_xml_args
;
memset
(
&
lv_remote_storage_vol_dump_xml_args
,
0
,
sizeof
lv_remote_storage_vol_dump_xml_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_dump_xml_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_dump_xml_ret
;
memset
(
&
lv_remote_storage_vol_dump_xml_ret
,
0
,
sizeof
lv_remote_storage_vol_dump_xml_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_GET_INFO
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolGetInfo
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_get_info_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_get_info_args
;
memset
(
&
lv_remote_storage_vol_get_info_args
,
0
,
sizeof
lv_remote_storage_vol_get_info_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_get_info_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_get_info_ret
;
memset
(
&
lv_remote_storage_vol_get_info_ret
,
0
,
sizeof
lv_remote_storage_vol_get_info_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_GET_PATH
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolGetPath
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_get_path_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_get_path_args
;
memset
(
&
lv_remote_storage_vol_get_path_args
,
0
,
sizeof
lv_remote_storage_vol_get_path_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_get_path_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_get_path_ret
;
memset
(
&
lv_remote_storage_vol_get_path_ret
,
0
,
sizeof
lv_remote_storage_vol_get_path_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolLookupByKey
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_key_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_key_args
;
memset
(
&
lv_remote_storage_vol_lookup_by_key_args
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_key_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_key_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_key_ret
;
memset
(
&
lv_remote_storage_vol_lookup_by_key_ret
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_key_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolLookupByName
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_name_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_name_args
;
memset
(
&
lv_remote_storage_vol_lookup_by_name_args
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_name_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_name_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_name_ret
;
memset
(
&
lv_remote_storage_vol_lookup_by_name_ret
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_name_ret
);
break
;
case
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH
:
fn
=
(
dispatch_fn
)
remoteDispatchStorageVolLookupByPath
;
args_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_path_args
;
args
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_path_args
;
memset
(
&
lv_remote_storage_vol_lookup_by_path_args
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_path_args
);
ret_filter
=
(
xdrproc_t
)
xdr_remote_storage_vol_lookup_by_path_ret
;
ret
=
(
char
*
)
&
lv_remote_storage_vol_lookup_by_path_ret
;
memset
(
&
lv_remote_storage_vol_lookup_by_path_ret
,
0
,
sizeof
lv_remote_storage_vol_lookup_by_path_ret
);
break
;
case
REMOTE_PROC_SUPPORTS_FEATURE
:
fn
=
(
dispatch_fn
)
remoteDispatchSupportsFeature
;
args_filter
=
(
xdrproc_t
)
xdr_remote_supports_feature_args
;
...
...
qemud/remote_dispatch_prototypes.h
浏览文件 @
f48160cf
...
...
@@ -52,8 +52,10 @@ static int remoteDispatchGetType (struct qemud_server *server, struct qemud_clie
static
int
remoteDispatchGetVersion
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_get_version_ret
*
ret
);
static
int
remoteDispatchListDefinedDomains
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_defined_domains_args
*
args
,
remote_list_defined_domains_ret
*
ret
);
static
int
remoteDispatchListDefinedNetworks
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_defined_networks_args
*
args
,
remote_list_defined_networks_ret
*
ret
);
static
int
remoteDispatchListDefinedStoragePools
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_defined_storage_pools_args
*
args
,
remote_list_defined_storage_pools_ret
*
ret
);
static
int
remoteDispatchListDomains
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_domains_args
*
args
,
remote_list_domains_ret
*
ret
);
static
int
remoteDispatchListNetworks
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_networks_args
*
args
,
remote_list_networks_ret
*
ret
);
static
int
remoteDispatchListStoragePools
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_list_storage_pools_args
*
args
,
remote_list_storage_pools_ret
*
ret
);
static
int
remoteDispatchNetworkCreate
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_network_create_args
*
args
,
void
*
ret
);
static
int
remoteDispatchNetworkCreateXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_network_create_xml_args
*
args
,
remote_network_create_xml_ret
*
ret
);
static
int
remoteDispatchNetworkDefineXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_network_define_xml_args
*
args
,
remote_network_define_xml_ret
*
ret
);
...
...
@@ -68,7 +70,34 @@ static int remoteDispatchNetworkUndefine (struct qemud_server *server, struct qe
static
int
remoteDispatchNodeGetInfo
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_node_get_info_ret
*
ret
);
static
int
remoteDispatchNumOfDefinedDomains
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_defined_domains_ret
*
ret
);
static
int
remoteDispatchNumOfDefinedNetworks
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_defined_networks_ret
*
ret
);
static
int
remoteDispatchNumOfDefinedStoragePools
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_defined_storage_pools_ret
*
ret
);
static
int
remoteDispatchNumOfDomains
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_domains_ret
*
ret
);
static
int
remoteDispatchNumOfNetworks
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_networks_ret
*
ret
);
static
int
remoteDispatchNumOfStoragePools
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
void
*
args
,
remote_num_of_storage_pools_ret
*
ret
);
static
int
remoteDispatchOpen
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_open_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolBuild
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_build_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolCreate
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_create_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolCreateXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_create_xml_args
*
args
,
remote_storage_pool_create_xml_ret
*
ret
);
static
int
remoteDispatchStoragePoolDefineXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_define_xml_args
*
args
,
remote_storage_pool_define_xml_ret
*
ret
);
static
int
remoteDispatchStoragePoolDelete
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_delete_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolDestroy
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_destroy_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolDumpXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_dump_xml_args
*
args
,
remote_storage_pool_dump_xml_ret
*
ret
);
static
int
remoteDispatchStoragePoolGetAutostart
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_get_autostart_args
*
args
,
remote_storage_pool_get_autostart_ret
*
ret
);
static
int
remoteDispatchStoragePoolGetInfo
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_get_info_args
*
args
,
remote_storage_pool_get_info_ret
*
ret
);
static
int
remoteDispatchStoragePoolListVolumes
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_list_volumes_args
*
args
,
remote_storage_pool_list_volumes_ret
*
ret
);
static
int
remoteDispatchStoragePoolLookupByName
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_lookup_by_name_args
*
args
,
remote_storage_pool_lookup_by_name_ret
*
ret
);
static
int
remoteDispatchStoragePoolLookupByUuid
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_lookup_by_uuid_args
*
args
,
remote_storage_pool_lookup_by_uuid_ret
*
ret
);
static
int
remoteDispatchStoragePoolLookupByVolume
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_lookup_by_volume_args
*
args
,
remote_storage_pool_lookup_by_volume_ret
*
ret
);
static
int
remoteDispatchStoragePoolNumOfVolumes
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_num_of_volumes_args
*
args
,
remote_storage_pool_num_of_volumes_ret
*
ret
);
static
int
remoteDispatchStoragePoolRefresh
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_refresh_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolSetAutostart
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_set_autostart_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStoragePoolUndefine
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_pool_undefine_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStorageVolCreateXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_create_xml_args
*
args
,
remote_storage_vol_create_xml_ret
*
ret
);
static
int
remoteDispatchStorageVolDelete
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_delete_args
*
args
,
void
*
ret
);
static
int
remoteDispatchStorageVolDumpXml
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_dump_xml_args
*
args
,
remote_storage_vol_dump_xml_ret
*
ret
);
static
int
remoteDispatchStorageVolGetInfo
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_get_info_args
*
args
,
remote_storage_vol_get_info_ret
*
ret
);
static
int
remoteDispatchStorageVolGetPath
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_get_path_args
*
args
,
remote_storage_vol_get_path_ret
*
ret
);
static
int
remoteDispatchStorageVolLookupByKey
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_lookup_by_key_args
*
args
,
remote_storage_vol_lookup_by_key_ret
*
ret
);
static
int
remoteDispatchStorageVolLookupByName
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_lookup_by_name_args
*
args
,
remote_storage_vol_lookup_by_name_ret
*
ret
);
static
int
remoteDispatchStorageVolLookupByPath
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_storage_vol_lookup_by_path_args
*
args
,
remote_storage_vol_lookup_by_path_ret
*
ret
);
static
int
remoteDispatchSupportsFeature
(
struct
qemud_server
*
server
,
struct
qemud_client
*
client
,
remote_message_header
*
req
,
remote_supports_feature_args
*
args
,
remote_supports_feature_ret
*
ret
);
qemud/remote_protocol.c
浏览文件 @
f48160cf
...
...
@@ -57,6 +57,30 @@ xdr_remote_nonnull_network (XDR *xdrs, remote_nonnull_network *objp)
return
TRUE
;
}
bool_t
xdr_remote_nonnull_storage_pool
(
XDR
*
xdrs
,
remote_nonnull_storage_pool
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
name
))
return
FALSE
;
if
(
!
xdr_remote_uuid
(
xdrs
,
objp
->
uuid
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_nonnull_storage_vol
(
XDR
*
xdrs
,
remote_nonnull_storage_vol
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
name
))
return
FALSE
;
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
key
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_domain
(
XDR
*
xdrs
,
remote_domain
*
objp
)
{
...
...
@@ -75,6 +99,24 @@ xdr_remote_network (XDR *xdrs, remote_network *objp)
return
TRUE
;
}
bool_t
xdr_remote_storage_pool
(
XDR
*
xdrs
,
remote_storage_pool
*
objp
)
{
if
(
!
xdr_pointer
(
xdrs
,
(
char
**
)
objp
,
sizeof
(
remote_nonnull_storage_pool
),
(
xdrproc_t
)
xdr_remote_nonnull_storage_pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol
(
XDR
*
xdrs
,
remote_storage_vol
*
objp
)
{
if
(
!
xdr_pointer
(
xdrs
,
(
char
**
)
objp
,
sizeof
(
remote_nonnull_storage_vol
),
(
xdrproc_t
)
xdr_remote_nonnull_storage_vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_error
(
XDR
*
xdrs
,
remote_error
*
objp
)
{
...
...
@@ -1317,6 +1359,482 @@ xdr_remote_auth_polkit_ret (XDR *xdrs, remote_auth_polkit_ret *objp)
return
TRUE
;
}
bool_t
xdr_remote_num_of_storage_pools_ret
(
XDR
*
xdrs
,
remote_num_of_storage_pools_ret
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
num
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_list_storage_pools_args
(
XDR
*
xdrs
,
remote_list_storage_pools_args
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
maxnames
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_list_storage_pools_ret
(
XDR
*
xdrs
,
remote_list_storage_pools_ret
*
objp
)
{
char
**
objp_cpp0
=
(
char
**
)
(
void
*
)
&
objp
->
names
.
names_val
;
if
(
!
xdr_array
(
xdrs
,
objp_cpp0
,
(
u_int
*
)
&
objp
->
names
.
names_len
,
REMOTE_STORAGE_POOL_NAME_LIST_MAX
,
sizeof
(
remote_nonnull_string
),
(
xdrproc_t
)
xdr_remote_nonnull_string
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_num_of_defined_storage_pools_ret
(
XDR
*
xdrs
,
remote_num_of_defined_storage_pools_ret
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
num
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_list_defined_storage_pools_args
(
XDR
*
xdrs
,
remote_list_defined_storage_pools_args
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
maxnames
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_list_defined_storage_pools_ret
(
XDR
*
xdrs
,
remote_list_defined_storage_pools_ret
*
objp
)
{
char
**
objp_cpp0
=
(
char
**
)
(
void
*
)
&
objp
->
names
.
names_val
;
if
(
!
xdr_array
(
xdrs
,
objp_cpp0
,
(
u_int
*
)
&
objp
->
names
.
names_len
,
REMOTE_STORAGE_POOL_NAME_LIST_MAX
,
sizeof
(
remote_nonnull_string
),
(
xdrproc_t
)
xdr_remote_nonnull_string
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_uuid_args
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_uuid_args
*
objp
)
{
if
(
!
xdr_remote_uuid
(
xdrs
,
objp
->
uuid
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_uuid_ret
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_uuid_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_name_args
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_name_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
name
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_name_ret
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_name_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_volume_args
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_volume_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_lookup_by_volume_ret
(
XDR
*
xdrs
,
remote_storage_pool_lookup_by_volume_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_create_xml_args
(
XDR
*
xdrs
,
remote_storage_pool_create_xml_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
xml
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_create_xml_ret
(
XDR
*
xdrs
,
remote_storage_pool_create_xml_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_define_xml_args
(
XDR
*
xdrs
,
remote_storage_pool_define_xml_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
xml
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_define_xml_ret
(
XDR
*
xdrs
,
remote_storage_pool_define_xml_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_build_args
(
XDR
*
xdrs
,
remote_storage_pool_build_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_undefine_args
(
XDR
*
xdrs
,
remote_storage_pool_undefine_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_create_args
(
XDR
*
xdrs
,
remote_storage_pool_create_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_destroy_args
(
XDR
*
xdrs
,
remote_storage_pool_destroy_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_delete_args
(
XDR
*
xdrs
,
remote_storage_pool_delete_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_refresh_args
(
XDR
*
xdrs
,
remote_storage_pool_refresh_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_dump_xml_args
(
XDR
*
xdrs
,
remote_storage_pool_dump_xml_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_dump_xml_ret
(
XDR
*
xdrs
,
remote_storage_pool_dump_xml_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
xml
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_get_info_args
(
XDR
*
xdrs
,
remote_storage_pool_get_info_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_get_info_ret
(
XDR
*
xdrs
,
remote_storage_pool_get_info_ret
*
objp
)
{
if
(
!
xdr_u_char
(
xdrs
,
&
objp
->
state
))
return
FALSE
;
if
(
!
xdr_u_quad_t
(
xdrs
,
&
objp
->
capacity
))
return
FALSE
;
if
(
!
xdr_u_quad_t
(
xdrs
,
&
objp
->
allocation
))
return
FALSE
;
if
(
!
xdr_u_quad_t
(
xdrs
,
&
objp
->
available
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_get_autostart_args
(
XDR
*
xdrs
,
remote_storage_pool_get_autostart_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_get_autostart_ret
(
XDR
*
xdrs
,
remote_storage_pool_get_autostart_ret
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
autostart
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_set_autostart_args
(
XDR
*
xdrs
,
remote_storage_pool_set_autostart_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_int
(
xdrs
,
&
objp
->
autostart
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_num_of_volumes_args
(
XDR
*
xdrs
,
remote_storage_pool_num_of_volumes_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_num_of_volumes_ret
(
XDR
*
xdrs
,
remote_storage_pool_num_of_volumes_ret
*
objp
)
{
if
(
!
xdr_int
(
xdrs
,
&
objp
->
num
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_list_volumes_args
(
XDR
*
xdrs
,
remote_storage_pool_list_volumes_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_int
(
xdrs
,
&
objp
->
maxnames
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_pool_list_volumes_ret
(
XDR
*
xdrs
,
remote_storage_pool_list_volumes_ret
*
objp
)
{
char
**
objp_cpp0
=
(
char
**
)
(
void
*
)
&
objp
->
names
.
names_val
;
if
(
!
xdr_array
(
xdrs
,
objp_cpp0
,
(
u_int
*
)
&
objp
->
names
.
names_len
,
REMOTE_STORAGE_VOL_NAME_LIST_MAX
,
sizeof
(
remote_nonnull_string
),
(
xdrproc_t
)
xdr_remote_nonnull_string
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_name_args
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_name_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
name
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_name_ret
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_name_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_key_args
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_key_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
key
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_key_ret
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_key_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_path_args
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_path_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
path
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_lookup_by_path_ret
(
XDR
*
xdrs
,
remote_storage_vol_lookup_by_path_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_create_xml_args
(
XDR
*
xdrs
,
remote_storage_vol_create_xml_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_pool
(
xdrs
,
&
objp
->
pool
))
return
FALSE
;
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
xml
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_create_xml_ret
(
XDR
*
xdrs
,
remote_storage_vol_create_xml_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_delete_args
(
XDR
*
xdrs
,
remote_storage_vol_delete_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_dump_xml_args
(
XDR
*
xdrs
,
remote_storage_vol_dump_xml_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
if
(
!
xdr_u_int
(
xdrs
,
&
objp
->
flags
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_dump_xml_ret
(
XDR
*
xdrs
,
remote_storage_vol_dump_xml_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
xml
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_get_info_args
(
XDR
*
xdrs
,
remote_storage_vol_get_info_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_get_info_ret
(
XDR
*
xdrs
,
remote_storage_vol_get_info_ret
*
objp
)
{
if
(
!
xdr_char
(
xdrs
,
&
objp
->
type
))
return
FALSE
;
if
(
!
xdr_u_quad_t
(
xdrs
,
&
objp
->
capacity
))
return
FALSE
;
if
(
!
xdr_u_quad_t
(
xdrs
,
&
objp
->
allocation
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_get_path_args
(
XDR
*
xdrs
,
remote_storage_vol_get_path_args
*
objp
)
{
if
(
!
xdr_remote_nonnull_storage_vol
(
xdrs
,
&
objp
->
vol
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_storage_vol_get_path_ret
(
XDR
*
xdrs
,
remote_storage_vol_get_path_ret
*
objp
)
{
if
(
!
xdr_remote_nonnull_string
(
xdrs
,
&
objp
->
name
))
return
FALSE
;
return
TRUE
;
}
bool_t
xdr_remote_procedure
(
XDR
*
xdrs
,
remote_procedure
*
objp
)
{
...
...
qemud/remote_protocol.h
浏览文件 @
f48160cf
此差异已折叠。
点击以展开。
qemud/remote_protocol.x
浏览文件 @
f48160cf
...
...
@@ -78,6 +78,12 @@ const REMOTE_MIGRATE_COOKIE_MAX = 256;
/* Upper limit on lists of network names. */
const
REMOTE_NETWORK_NAME_LIST_MAX
=
256
;
/* Upper limit on lists of storage pool names. */
const
REMOTE_STORAGE_POOL_NAME_LIST_MAX
=
256
;
/* Upper limit on lists of storage vol names. */
const
REMOTE_STORAGE_VOL_NAME_LIST_MAX
=
1024
;
/* Upper limit on list of scheduler parameters. */
const
REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX
=
16
;
...
...
@@ -103,9 +109,24 @@ struct remote_nonnull_network {
remote_uuid
uuid
;
};
/* A storage pool which may not be NULL. */
struct
remote_nonnull_storage_pool
{
remote_nonnull_string
name
;
remote_uuid
uuid
;
};
/* A storage vol which may not be NULL. */
struct
remote_nonnull_storage_vol
{
remote_nonnull_string
pool
;
remote_nonnull_string
name
;
remote_nonnull_string
key
;
};
/* A domain or network which may be NULL. */
typedef
remote_nonnull_domain
*
remote_domain
;
typedef
remote_nonnull_network
*
remote_network
;
typedef
remote_nonnull_storage_pool
*
remote_storage_pool
;
typedef
remote_nonnull_storage_vol
*
remote_storage_vol
;
/* Error message. See <virterror.h> for explanation of fields. */
...
...
@@ -626,6 +647,7 @@ struct remote_network_set_autostart_args {
int
autostart
;
};
struct
remote_auth_list_ret
{
remote_auth_type
types
<
REMOTE_AUTH_TYPE_LIST_MAX
>
;
};
...
...
@@ -661,6 +683,225 @@ struct remote_auth_polkit_ret {
int
complete
;
};
/* Storage pool calls: */
struct
remote_num_of_storage_pools_ret
{
int
num
;
};
struct
remote_list_storage_pools_args
{
int
maxnames
;
};
struct
remote_list_storage_pools_ret
{
remote_nonnull_string
names
<
REMOTE_STORAGE_POOL_NAME_LIST_MAX
>
;
};
struct
remote_num_of_defined_storage_pools_ret
{
int
num
;
};
struct
remote_list_defined_storage_pools_args
{
int
maxnames
;
};
struct
remote_list_defined_storage_pools_ret
{
remote_nonnull_string
names
<
REMOTE_STORAGE_POOL_NAME_LIST_MAX
>
;
};
struct
remote_storage_pool_lookup_by_uuid_args
{
remote_uuid
uuid
;
};
struct
remote_storage_pool_lookup_by_uuid_ret
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_lookup_by_name_args
{
remote_nonnull_string
name
;
};
struct
remote_storage_pool_lookup_by_name_ret
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_lookup_by_volume_args
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_pool_lookup_by_volume_ret
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_create_xml_args
{
remote_nonnull_string
xml
;
unsigned
flags
;
};
struct
remote_storage_pool_create_xml_ret
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_define_xml_args
{
remote_nonnull_string
xml
;
unsigned
flags
;
};
struct
remote_storage_pool_define_xml_ret
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_build_args
{
remote_nonnull_storage_pool
pool
;
unsigned
flags
;
};
struct
remote_storage_pool_undefine_args
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_create_args
{
remote_nonnull_storage_pool
pool
;
unsigned
flags
;
};
struct
remote_storage_pool_destroy_args
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_delete_args
{
remote_nonnull_storage_pool
pool
;
unsigned
flags
;
};
struct
remote_storage_pool_refresh_args
{
remote_nonnull_storage_pool
pool
;
unsigned
flags
;
};
struct
remote_storage_pool_dump_xml_args
{
remote_nonnull_storage_pool
pool
;
unsigned
flags
;
};
struct
remote_storage_pool_dump_xml_ret
{
remote_nonnull_string
xml
;
};
struct
remote_storage_pool_get_info_args
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_get_info_ret
{
unsigned
char
state
;
unsigned
hyper
capacity
;
unsigned
hyper
allocation
;
unsigned
hyper
available
;
};
struct
remote_storage_pool_get_autostart_args
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_get_autostart_ret
{
int
autostart
;
};
struct
remote_storage_pool_set_autostart_args
{
remote_nonnull_storage_pool
pool
;
int
autostart
;
};
struct
remote_storage_pool_num_of_volumes_args
{
remote_nonnull_storage_pool
pool
;
};
struct
remote_storage_pool_num_of_volumes_ret
{
int
num
;
};
struct
remote_storage_pool_list_volumes_args
{
remote_nonnull_storage_pool
pool
;
int
maxnames
;
};
struct
remote_storage_pool_list_volumes_ret
{
remote_nonnull_string
names
<
REMOTE_STORAGE_VOL_NAME_LIST_MAX
>
;
};
/* Storage vol calls: */
struct
remote_storage_vol_lookup_by_name_args
{
remote_nonnull_storage_pool
pool
;
remote_nonnull_string
name
;
};
struct
remote_storage_vol_lookup_by_name_ret
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_lookup_by_key_args
{
remote_nonnull_string
key
;
};
struct
remote_storage_vol_lookup_by_key_ret
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_lookup_by_path_args
{
remote_nonnull_string
path
;
};
struct
remote_storage_vol_lookup_by_path_ret
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_create_xml_args
{
remote_nonnull_storage_pool
pool
;
remote_nonnull_string
xml
;
unsigned
flags
;
};
struct
remote_storage_vol_create_xml_ret
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_delete_args
{
remote_nonnull_storage_vol
vol
;
unsigned
flags
;
};
struct
remote_storage_vol_dump_xml_args
{
remote_nonnull_storage_vol
vol
;
unsigned
flags
;
};
struct
remote_storage_vol_dump_xml_ret
{
remote_nonnull_string
xml
;
};
struct
remote_storage_vol_get_info_args
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_get_info_ret
{
char
type
;
unsigned
hyper
capacity
;
unsigned
hyper
allocation
;
};
struct
remote_storage_vol_get_path_args
{
remote_nonnull_storage_vol
vol
;
};
struct
remote_storage_vol_get_path_ret
{
remote_nonnull_string
name
;
};
/*----- Protocol. -----*/
/* Define the program number, protocol version and procedure numbers here. */
...
...
@@ -678,6 +919,7 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_ATTACH_DEVICE
=
8
,
REMOTE_PROC_DOMAIN_CREATE
=
9
,
REMOTE_PROC_DOMAIN_CREATE_LINUX
=
10
,
REMOTE_PROC_DOMAIN_DEFINE_XML
=
11
,
REMOTE_PROC_DOMAIN_DESTROY
=
12
,
REMOTE_PROC_DOMAIN_DETACH_DEVICE
=
13
,
...
...
@@ -688,6 +930,7 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_MAX_VCPUS
=
18
,
REMOTE_PROC_DOMAIN_GET_OS_TYPE
=
19
,
REMOTE_PROC_DOMAIN_GET_VCPUS
=
20
,
REMOTE_PROC_LIST_DEFINED_DOMAINS
=
21
,
REMOTE_PROC_DOMAIN_LOOKUP_BY_ID
=
22
,
REMOTE_PROC_DOMAIN_LOOKUP_BY_NAME
=
23
,
...
...
@@ -698,6 +941,7 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_RESUME
=
28
,
REMOTE_PROC_DOMAIN_SET_AUTOSTART
=
29
,
REMOTE_PROC_DOMAIN_SET_MAX_MEMORY
=
30
,
REMOTE_PROC_DOMAIN_SET_MEMORY
=
31
,
REMOTE_PROC_DOMAIN_SET_VCPUS
=
32
,
REMOTE_PROC_DOMAIN_SHUTDOWN
=
33
,
...
...
@@ -708,6 +952,7 @@ enum remote_procedure {
REMOTE_PROC_LIST_NETWORKS
=
38
,
REMOTE_PROC_NETWORK_CREATE
=
39
,
REMOTE_PROC_NETWORK_CREATE_XML
=
40
,
REMOTE_PROC_NETWORK_DEFINE_XML
=
41
,
REMOTE_PROC_NETWORK_DESTROY
=
42
,
REMOTE_PROC_NETWORK_DUMP_XML
=
43
,
...
...
@@ -718,6 +963,7 @@ enum remote_procedure {
REMOTE_PROC_NETWORK_SET_AUTOSTART
=
48
,
REMOTE_PROC_NETWORK_UNDEFINE
=
49
,
REMOTE_PROC_NUM_OF_DEFINED_NETWORKS
=
50
,
REMOTE_PROC_NUM_OF_DOMAINS
=
51
,
REMOTE_PROC_NUM_OF_NETWORKS
=
52
,
REMOTE_PROC_DOMAIN_CORE_DUMP
=
53
,
...
...
@@ -728,6 +974,7 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SET_SCHEDULER_PARAMETERS
=
58
,
REMOTE_PROC_GET_HOSTNAME
=
59
,
REMOTE_PROC_SUPPORTS_FEATURE
=
60
,
REMOTE_PROC_DOMAIN_MIGRATE_PREPARE
=
61
,
REMOTE_PROC_DOMAIN_MIGRATE_PERFORM
=
62
,
REMOTE_PROC_DOMAIN_MIGRATE_FINISH
=
63
,
...
...
@@ -737,7 +984,40 @@ enum remote_procedure {
REMOTE_PROC_AUTH_SASL_INIT
=
67
,
REMOTE_PROC_AUTH_SASL_START
=
68
,
REMOTE_PROC_AUTH_SASL_STEP
=
69
,
REMOTE_PROC_AUTH_POLKIT
=
70
REMOTE_PROC_AUTH_POLKIT
=
70
,
REMOTE_PROC_NUM_OF_STORAGE_POOLS
=
71
,
REMOTE_PROC_LIST_STORAGE_POOLS
=
72
,
REMOTE_PROC_NUM_OF_DEFINED_STORAGE_POOLS
=
73
,
REMOTE_PROC_LIST_DEFINED_STORAGE_POOLS
=
74
,
REMOTE_PROC_DISCOVER_STORAGE_POOLS
=
75
,
REMOTE_PROC_STORAGE_POOL_CREATE_XML
=
76
,
REMOTE_PROC_STORAGE_POOL_DEFINE_XML
=
77
,
REMOTE_PROC_STORAGE_POOL_CREATE
=
78
,
REMOTE_PROC_STORAGE_POOL_BUILD
=
79
,
REMOTE_PROC_STORAGE_POOL_DESTROY
=
80
,
REMOTE_PROC_STORAGE_POOL_DELETE
=
81
,
REMOTE_PROC_STORAGE_POOL_UNDEFINE
=
82
,
REMOTE_PROC_STORAGE_POOL_REFRESH
=
83
,
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_NAME
=
84
,
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_UUID
=
85
,
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_VOLUME
=
86
,
REMOTE_PROC_STORAGE_POOL_GET_INFO
=
87
,
REMOTE_PROC_STORAGE_POOL_DUMP_XML
=
88
,
REMOTE_PROC_STORAGE_POOL_GET_AUTOSTART
=
89
,
REMOTE_PROC_STORAGE_POOL_SET_AUTOSTART
=
90
,
REMOTE_PROC_STORAGE_POOL_NUM_OF_VOLUMES
=
91
,
REMOTE_PROC_STORAGE_POOL_LIST_VOLUMES
=
92
,
REMOTE_PROC_STORAGE_VOL_CREATE_XML
=
93
,
REMOTE_PROC_STORAGE_VOL_DELETE
=
94
,
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_NAME
=
95
,
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_KEY
=
96
,
REMOTE_PROC_STORAGE_VOL_LOOKUP_BY_PATH
=
97
,
REMOTE_PROC_STORAGE_VOL_GET_INFO
=
98
,
REMOTE_PROC_STORAGE_VOL_DUMP_XML
=
99
,
REMOTE_PROC_STORAGE_VOL_GET_PATH
=
100
};
/* Custom RPC structure. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录