|
|
7548c0 |
From c8fb30409d501e5d9299ac7c08c43917b199a72b Mon Sep 17 00:00:00 2001
|
|
|
7548c0 |
Message-Id: <c8fb30409d501e5d9299ac7c08c43917b199a72b@dist-git>
|
|
|
7548c0 |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
7548c0 |
Date: Fri, 19 Feb 2021 13:33:52 +0100
|
|
|
7548c0 |
Subject: [PATCH] virsystemd: export virSystemdHasMachined
|
|
|
7548c0 |
MIME-Version: 1.0
|
|
|
7548c0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
7548c0 |
Content-Transfer-Encoding: 8bit
|
|
|
7548c0 |
|
|
|
7548c0 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
7548c0 |
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
7548c0 |
(cherry picked from commit a51147d9065217d9087449b4e601e3294c0a22cf)
|
|
|
7548c0 |
|
|
|
7548c0 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1798463
|
|
|
7548c0 |
|
|
|
7548c0 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
7548c0 |
Message-Id: <9a861adc0dc51679d7178e464255c80465247333.1613737828.git.phrdina@redhat.com>
|
|
|
7548c0 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
7548c0 |
---
|
|
|
7548c0 |
src/libvirt_private.syms | 1 +
|
|
|
7548c0 |
src/util/virsystemd.c | 2 +-
|
|
|
7548c0 |
src/util/virsystemd.h | 2 ++
|
|
|
7548c0 |
3 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
7548c0 |
|
|
|
7548c0 |
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
|
|
|
7548c0 |
index 9d87e2a27b..a869d1f7a4 100644
|
|
|
7548c0 |
--- a/src/libvirt_private.syms
|
|
|
7548c0 |
+++ b/src/libvirt_private.syms
|
|
|
7548c0 |
@@ -3243,6 +3243,7 @@ virSystemdGetActivation;
|
|
|
7548c0 |
virSystemdGetMachineNameByPID;
|
|
|
7548c0 |
virSystemdHasLogind;
|
|
|
7548c0 |
virSystemdHasLogindResetCachedValue;
|
|
|
7548c0 |
+virSystemdHasMachined;
|
|
|
7548c0 |
virSystemdHasMachinedResetCachedValue;
|
|
|
7548c0 |
virSystemdMakeScopeName;
|
|
|
7548c0 |
virSystemdMakeSliceName;
|
|
|
7548c0 |
diff --git a/src/util/virsystemd.c b/src/util/virsystemd.c
|
|
|
7548c0 |
index 96d43e5440..ca708cd1bd 100644
|
|
|
7548c0 |
--- a/src/util/virsystemd.c
|
|
|
7548c0 |
+++ b/src/util/virsystemd.c
|
|
|
7548c0 |
@@ -153,7 +153,7 @@ void virSystemdHasLogindResetCachedValue(void)
|
|
|
7548c0 |
* -1 = error
|
|
|
7548c0 |
* 0 = machine1 is available
|
|
|
7548c0 |
*/
|
|
|
7548c0 |
-static int
|
|
|
7548c0 |
+int
|
|
|
7548c0 |
virSystemdHasMachined(void)
|
|
|
7548c0 |
{
|
|
|
7548c0 |
int ret;
|
|
|
7548c0 |
diff --git a/src/util/virsystemd.h b/src/util/virsystemd.h
|
|
|
7548c0 |
index dfea75948b..9ce16b7de1 100644
|
|
|
7548c0 |
--- a/src/util/virsystemd.h
|
|
|
7548c0 |
+++ b/src/util/virsystemd.h
|
|
|
7548c0 |
@@ -57,6 +57,8 @@ int virSystemdTerminateMachine(const char *name);
|
|
|
7548c0 |
|
|
|
7548c0 |
void virSystemdNotifyStartup(void);
|
|
|
7548c0 |
|
|
|
7548c0 |
+int virSystemdHasMachined(void);
|
|
|
7548c0 |
+
|
|
|
7548c0 |
int virSystemdHasLogind(void);
|
|
|
7548c0 |
|
|
|
7548c0 |
int virSystemdCanSuspend(bool *result);
|
|
|
7548c0 |
--
|
|
|
7548c0 |
2.30.0
|
|
|
7548c0 |
|