virSystemdHasLogindResetCachedValue;
virSystemdHasMachined;
virSystemdHasMachinedResetCachedValue;
+virSystemdHasResolved;
+virSystemdHasResolvedResetCachedValue;
virSystemdMakeScopeName;
virSystemdMakeSliceName;
virSystemdNotifyStartup;
static int virSystemdHasMachinedCachedValue = -1;
static int virSystemdHasLogindCachedValue = -1;
+static int virSystemdHasResolvedCachedValue = -1;
/* Reset the cache from tests for testing the underlying dbus calls
* as well */
virSystemdHasLogindCachedValue = -1;
}
+void
+virSystemdHasResolvedResetCachedValue(void)
+{
+ virSystemdHasResolvedCachedValue = -1;
+}
+
/**
* virSystemdHasService:
}
+int
+virSystemdHasResolved(void)
+{
+ return virSystemdHasService("org.freedesktop.resolve1",
+ &virSystemdHasResolvedCachedValue);
+}
+
+
/**
* virSystemdGetMachineByPID:
* @conn: dbus connection
int virSystemdHasLogind(void);
+int virSystemdHasResolved(void);
+
int virSystemdCanSuspend(bool *result);
int virSystemdCanHibernate(bool *result);