提交 18a6dc93 编写于 作者: W Wang Yufei 提交者: Eric Blake

maint: clean up _virDomainMemoryStat

Clean up all _virDomainMemoryStat.
Signed-off-by: NJames <james.wangyufei@huawei.com>
Signed-off-by: NWang Rui <moon.wangrui@huawei.com>
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 744d0f3d
......@@ -1604,7 +1604,7 @@ remoteDispatchDomainMemoryStats(virNetServerPtr server ATTRIBUTE_UNUSED,
remote_domain_memory_stats_ret *ret)
{
virDomainPtr dom = NULL;
struct _virDomainMemoryStat *stats = NULL;
virDomainMemoryStatPtr stats = NULL;
int nr_stats;
size_t i;
int rv = -1;
......
......@@ -535,7 +535,7 @@ typedef int
typedef int
(*virDrvDomainMemoryStats)(virDomainPtr domain,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags);
......
......@@ -5387,7 +5387,7 @@ lxcNodeGetInfo(virConnectPtr conn,
static int
lxcDomainMemoryStats(virDomainPtr dom,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{
......
......@@ -10187,7 +10187,7 @@ qemuDomainGetInterfaceParameters(virDomainPtr dom,
static int
qemuDomainMemoryStats(virDomainPtr dom,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{
......
......@@ -684,7 +684,7 @@ int qemuMonitorTextGetBalloonInfo(qemuMonitorPtr mon,
if ((offset = strstr(reply, BALLOON_PREFIX)) != NULL) {
offset += strlen(BALLOON_PREFIX);
struct _virDomainMemoryStat stats[1];
virDomainMemoryStatStruct stats[1];
if (qemuMonitorParseBalloonInfo(offset, stats, 1) == 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
......
......@@ -2690,7 +2690,7 @@ remoteDomainGetSchedulerType(virDomainPtr domain, int *nparams)
static int
remoteDomainMemoryStats(virDomainPtr domain,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{
......
......@@ -295,7 +295,7 @@ cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
const char *name;
struct _virDomainMemoryStat stats[VIR_DOMAIN_MEMORY_STAT_NR];
virDomainMemoryStatStruct stats[VIR_DOMAIN_MEMORY_STAT_NR];
unsigned int nr_stats;
size_t i;
int ret = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册