summaryrefslogtreecommitdiff
path: root/hw/usb_cfs_client_common.c
diff options
context:
space:
mode:
authorsanghyeok.oh <sanghyeok.oh@samsung.com>2019-01-29 16:53:20 +0900
committerHyotaek Shim <hyotaek.shim@samsung.com>2019-02-08 02:06:55 +0000
commit8e5459d1c8b96daffc26bde742be03fa19a20d02 (patch)
treed97210643df2b700f279abe5f8c713b875ca6cf3 /hw/usb_cfs_client_common.c
parent2c328fac949e3e99fed4e9396d5f65d7b1ee5916 (diff)
downloadlibdevice-node-8e5459d1c8b96daffc26bde742be03fa19a20d02.tar.gz
libdevice-node-8e5459d1c8b96daffc26bde742be03fa19a20d02.tar.bz2
libdevice-node-8e5459d1c8b96daffc26bde742be03fa19a20d02.zip
dbus: remove systemd start/stop unit api
Change-Id: Ic498a2c56ffaccdcacf2c01d5d20a169fc5324cf Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
Diffstat (limited to 'hw/usb_cfs_client_common.c')
-rwxr-xr-x[-rw-r--r--]hw/usb_cfs_client_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/usb_cfs_client_common.c b/hw/usb_cfs_client_common.c
index 1982283..3a4246b 100644..100755
--- a/hw/usb_cfs_client_common.c
+++ b/hw/usb_cfs_client_common.c
@@ -17,7 +17,6 @@
*/
#include <hw/usb_client.h>
-#include <hw/systemd.h>
#include <hw/shared.h>
#include <limits.h>
@@ -29,7 +28,8 @@
#include <usbg/usbg.h>
#include <unistd.h>
-#include <unistd.h>
+#include <libgdbus/dbus-systemd.h>
+
#define zalloc(amount) calloc(1, amount)
@@ -650,7 +650,7 @@ static int cfs_prep_ffs_service(const char *name, const char *instance,
if (ret < 0)
return ret;
- ret = systemd_start_socket(socket_name);
+ ret = systemd_start_unit_sync(socket_name, ".socket", -1);
if (ret < 0)
goto umount_ffs;
@@ -925,8 +925,8 @@ int hw_cfs_gadget_close(struct hw_common *common)
fws = container_of(usb_func,
struct usb_function_with_service,
func);
- systemd_stop_socket(fws->service);
- systemd_stop_service(fws->service);
+ systemd_stop_unit_sync(fws->service, ".socket", -1);
+ systemd_stop_unit_sync(fws->service, ".service", -1);
}
}