Make virCgroupIsValidMachine static

The virCgroupIsValidMachine does not need to be called from
outside the cgroups file now, so make it static.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2013-07-24 17:38:08 +01:00
parent a45b99ead9
commit 525c9d5a49
3 changed files with 4 additions and 9 deletions

View File

@ -1186,7 +1186,6 @@ virCgroupGetMemSwapHardLimit;
virCgroupGetMemSwapUsage;
virCgroupHasController;
virCgroupIsolateMount;
virCgroupIsValidMachineGroup;
virCgroupKill;
virCgroupKillPainfully;
virCgroupKillRecursive;

View File

@ -95,9 +95,10 @@ bool virCgroupAvailable(void)
return ret;
}
bool virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *name,
const char *drivername)
static bool
virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *name,
const char *drivername)
{
size_t i;
bool valid = false;

View File

@ -48,11 +48,6 @@ VIR_ENUM_DECL(virCgroupController);
bool virCgroupAvailable(void);
bool virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *machinename,
const char *drivername);
int virCgroupNewPartition(const char *path,
bool create,
int controllers,