core: service: Use defines instead of hard coded strings 86/129986/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 18 May 2017 17:22:25 +0000 (19:22 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 18 May 2017 17:22:25 +0000 (19:22 +0200)
Change-Id: I5f0726b6d6aa71c17d66dd663819e44e7ddbe807
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/core/service.c

index 3a3f422664c30f15d388405ba0101eecbc015eb1..1a87d87f83494c8ea1182e768e67179cb628546b 100644 (file)
@@ -26,6 +26,7 @@
 #include "log.h"
 #include "service.h"
 #include "common.h"
+#include "systemd_dbus.h"
 
 int systemd_service_init_by_pid(pid_t pid, struct systemd_service *s)
 {
@@ -74,9 +75,9 @@ int systemd_get_unit_by_pid(pid_t pid, const char **name)
        }
 
        rc = sd_bus_call_method(bus,
-                                                       "org.freedesktop.systemd1",         /* service */
-                                                       "/org/freedesktop/systemd1",        /* object  */
-                                                       "org.freedesktop.systemd1.Manager", /* interface */
+                                                       SYSTEMD_SERVICE,
+                                                       SYSTEMD_OBJ,
+                                                       SYSTEMD_MANAGER_INTERFACE,
                                                        "GetUnitByPID",                     /* method */
                                                        &error,                             /* place to store error */
                                                        &m,                                 /* place to store answer */