[libvirt PATCH 1/9] virsystemd: export virSystemdHasMachined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/libvirt_private.syms | 1 +
 src/util/virsystemd.c    | 2 +-
 src/util/virsystemd.h    | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 0636b0d8c9..b2d2282ce0 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -3304,6 +3304,7 @@ virSystemdGetActivation;
 virSystemdGetMachineNameByPID;
 virSystemdHasLogind;
 virSystemdHasLogindResetCachedValue;
+virSystemdHasMachined;
 virSystemdHasMachinedResetCachedValue;
 virSystemdMakeScopeName;
 virSystemdMakeSliceName;
diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
index 3f689365e4..58b5c650b5 100644
--- a/src/util/virsystemd.c
+++ b/src/util/virsystemd.c
@@ -147,7 +147,7 @@ void virSystemdHasLogindResetCachedValue(void)
  * -1 = error
  *  0 = machine1 is available
  */
-static int
+int
 virSystemdHasMachined(void)
 {
     int ret;
diff --git a/src/util/virsystemd.h b/src/util/virsystemd.h
index dfea75948b..9ce16b7de1 100644
--- a/src/util/virsystemd.h
+++ b/src/util/virsystemd.h
@@ -57,6 +57,8 @@ int virSystemdTerminateMachine(const char *name);
 
 void virSystemdNotifyStartup(void);
 
+int virSystemdHasMachined(void);
+
 int virSystemdHasLogind(void);
 
 int virSystemdCanSuspend(bool *result);
-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux