fwupd/src/fu-systemd.h
Richard Hughes 3d00522dd3 Check if the system is offline during install, rather than at startup
This splits out the systemd functionality to a new file, but makes no other
logic changes.
2019-05-18 08:02:29 -07:00

24 lines
550 B
C

/*
* Copyright (C) 2017-2019 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <glib.h>
G_BEGIN_DECLS
gboolean fu_systemd_unit_check_exists (const gchar *unit,
GError **error);
gboolean fu_systemd_unit_stop (const gchar *unit,
GError **error);
gboolean fu_systemd_unit_enable (const gchar *unit,
GError **error);
gboolean fu_systemd_unit_disable (const gchar *unit,
GError **error);
gchar *fu_systemd_get_default_target (GError **error);
G_END_DECLS