mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
maint: clean up _virDomainMemoryStat
Clean up all _virDomainMemoryStat. Signed-off-by: James <james.wangyufei@huawei.com> Signed-off-by: Wang Rui <moon.wangrui@huawei.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
744d0f3de0
commit
18a6dc93e5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user