]> xenbits.xensource.com Git - libvirt.git/commitdiff
Make virCgroupIsValidMachine static
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 24 Jul 2013 16:38:08 +0000 (17:38 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 25 Jul 2013 18:55:29 +0000 (19:55 +0100)
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>
src/libvirt_private.syms
src/util/vircgroup.c
src/util/vircgroup.h

index b076e60c65887f32ac8bb054cdd9ec12a0abd610..d9615ea09a76432b46a3af24fe181c4189945b30 100644 (file)
@@ -1186,7 +1186,6 @@ virCgroupGetMemSwapHardLimit;
 virCgroupGetMemSwapUsage;
 virCgroupHasController;
 virCgroupIsolateMount;
-virCgroupIsValidMachineGroup;
 virCgroupKill;
 virCgroupKillPainfully;
 virCgroupKillRecursive;
index 6872ac4d12dbd83376abd949bbed8e67b9575c76..3332a397759a01101df83bc58022a756032aefe8 100644 (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;
index 4f72aa8ced21743e4308bed59e3f37bbe1f90115..d6222d7fe9905b466542f72340455a04d9b60486 100644 (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,