#include <bundle.h>
#include <eventsystem.h>
#include <libgdbus/dbus-system.h>
+#include <libgdbus/dbus-systemd.h>
#include "core/log.h"
#include "core/device-notifier.h"
#include "core/common.h"
#include "display/poll.h"
#include "display/display-ops.h"
-#include "shared/deviced-systemd.h"
#define SIGNAL_BOOTING_DONE "BootingDone"
#define SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED "StartupFinished"
size_t len;
GVariant *reply = NULL;
- reply = deviced_systemd_get_manager_property(SYSTEMD_DBUS_METHOD_SYSTEM_STATE);
+ reply = systemd_get_manager_property(SYSTEMD_DBUS_METHOD_SYSTEM_STATE);
if (!reply) {
_E("Failed to get System State: no reply");
goto err;
#include <eventsystem.h>
#include <stdbool.h>
#include <libgdbus/dbus-system.h>
+#include <libgdbus/dbus-systemd.h>
#include "dd-deviced.h"
#include "core/log.h"
#include "display/display-ops.h"
#include "power-handler.h"
#include "apps/apps.h"
-#include "shared/deviced-systemd.h"
#include "boot.h"
#define POWEROFF_DURATION 2
{
int ret;
- ret = deviced_systemd_start_unit("shutdown-animation.service");
+ ret = systemd_start_unit_async("shutdown-animation.service", NULL);
if (ret < 0)
_E("Failed to start shutdown animation");
{
int ret;
- ret = deviced_systemd_stop_unit("systemd-journald.socket");
+ ret = systemd_stop_unit_async("systemd-journald.socket", NULL);
if (ret < 0) {
_E("failed to stop 'systemd-journald.socket'");
return ret;
}
- ret |= deviced_systemd_stop_unit("systemd-journald.service");
+ ret = systemd_stop_unit_async("systemd-journald.service", NULL);
if (ret < 0) {
_E("failed to stop 'systemd-journald.service'");
return ret;
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(SHARED_SRCS
- deviced-systemd.c
plugin.c
)
#include <sys/mount.h>
#include <unistd.h>
#include <libgdbus/dbus-system.h>
+#include <libgdbus/dbus-systemd.h>
#include "core/log.h"
#include "core/config-parser.h"
#include "core/device-notifier.h"
#include "core/devices.h"
#include "core/list.h"
-#include "shared/deviced-systemd.h"
#define FFS_PATH "/run/usb-host-test-ffs"
#define GADGET_SCHEME_PATH "/etc/deviced/usb-host-test/test_gadget.gs"
_E("fail to init dbus signal(%d)", ret);
sigid_start = ret;
- ret = deviced_systemd_start_unit(SYSTEMD_UNIT_NAME);
+ ret = systemd_start_unit_sync(SYSTEMD_UNIT_NAME, NULL, -1);
if (ret < 0) {
_E("Error starting daemon");
/*unregister_dbus_signal_handler(SYSTEMD_DBUS_PATH,
sigid_stop = ret;
- ret = deviced_systemd_stop_unit(SYSTEMD_UNIT_NAME);
+ ret = systemd_stop_unit_sync(SYSTEMD_UNIT_NAME, NULL, -1);
if (ret < 0) {
_E("could not stop socket unit");
goto out;
}
- ret = deviced_systemd_stop_unit(SYSTEMD_SERVICE_NAME);
+ ret = systemd_stop_unit_sync(SYSTEMD_SERVICE_NAME, NULL, -1);
if (ret < 0) {
_E("could not stop service unit");
goto out;