提交 6869b597 编写于 作者: G Guido Günther

remote: Provide RPC call for domainGetHostname

上级 0429e5f0
......@@ -5347,6 +5347,7 @@ static virDriver remote_driver = {
.domainGetDiskErrors = remoteDomainGetDiskErrors, /* 0.9.10 */
.domainSetMetadata = remoteDomainSetMetadata, /* 0.9.10 */
.domainGetMetadata = remoteDomainGetMetadata, /* 0.9.10 */
.domainGetHostname = remoteDomainGetHostname, /* 0.9.14 */
};
static virNetworkDriver network_driver = {
......
......@@ -1221,6 +1221,15 @@ struct remote_domain_get_cpu_stats_ret {
int nparams;
};
struct remote_domain_get_hostname_args {
remote_nonnull_domain dom;
unsigned int flags;
};
struct remote_domain_get_hostname_ret {
remote_nonnull_string hostname;
};
/* Network calls: */
struct remote_num_of_networks_ret {
......@@ -2844,7 +2853,8 @@ enum remote_procedure {
REMOTE_PROC_CONNECT_LIST_ALL_DOMAINS = 273, /* skipgen skipgen priority:high */
REMOTE_PROC_DOMAIN_LIST_ALL_SNAPSHOTS = 274, /* skipgen skipgen priority:high */
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_ALL_CHILDREN = 275, /* skipgen skipgen priority:high */
REMOTE_PROC_DOMAIN_EVENT_BALLOON_CHANGE = 276 /* autogen autogen */
REMOTE_PROC_DOMAIN_EVENT_BALLOON_CHANGE = 276, /* autogen autogen */
REMOTE_PROC_DOMAIN_GET_HOSTNAME = 277 /* autogen autogen */
/*
* Notice how the entries are grouped in sets of 10 ?
......
......@@ -881,6 +881,13 @@ struct remote_domain_get_cpu_stats_ret {
} params;
int nparams;
};
struct remote_domain_get_hostname_args {
remote_nonnull_domain dom;
u_int flags;
};
struct remote_domain_get_hostname_ret {
remote_nonnull_string hostname;
};
struct remote_num_of_networks_ret {
int num;
};
......@@ -2251,4 +2258,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_LIST_ALL_SNAPSHOTS = 274,
REMOTE_PROC_DOMAIN_SNAPSHOT_LIST_ALL_CHILDREN = 275,
REMOTE_PROC_DOMAIN_EVENT_BALLOON_CHANGE = 276,
REMOTE_PROC_DOMAIN_GET_HOSTNAME = 277,
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册