]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsystemd: export virSystemdHasMachined
authorPavel Hrdina <phrdina@redhat.com>
Tue, 27 Oct 2020 13:14:08 +0000 (14:14 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 10 Feb 2021 12:37:11 +0000 (13:37 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/virsystemd.c
src/util/virsystemd.h

index 0636b0d8c9598e23cda9a2b6a1bda36a1f8a3235..b2d2282ce0923efb1dfc9520d6813c68dc9aafb9 100644 (file)
@@ -3304,6 +3304,7 @@ virSystemdGetActivation;
 virSystemdGetMachineNameByPID;
 virSystemdHasLogind;
 virSystemdHasLogindResetCachedValue;
+virSystemdHasMachined;
 virSystemdHasMachinedResetCachedValue;
 virSystemdMakeScopeName;
 virSystemdMakeSliceName;
index 3f689365e480a96068aa4d9b9ac6babdd007952b..58b5c650b5132a7c0134b3f00113c4ff09eef052 100644 (file)
@@ -147,7 +147,7 @@ void virSystemdHasLogindResetCachedValue(void)
  * -1 = error
  *  0 = machine1 is available
  */
-static int
+int
 virSystemdHasMachined(void)
 {
     int ret;
index dfea75948b5d9dffd13b6f4f13f79b86791abf90..9ce16b7de1315cd2ae58cb157533a6423cdd0a46 100644 (file)
@@ -57,6 +57,8 @@ int virSystemdTerminateMachine(const char *name);
 
 void virSystemdNotifyStartup(void);
 
+int virSystemdHasMachined(void);
+
 int virSystemdHasLogind(void);
 
 int virSystemdCanSuspend(bool *result);