]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machined: expose machine_freep in machine.h
authorSam Leonard <sam.leonard@codethink.co.uk>
Mon, 22 Apr 2024 15:23:13 +0000 (16:23 +0100)
committerLuca Boccassi <bluca@debian.org>
Wed, 8 May 2024 08:52:15 +0000 (09:52 +0100)
src/machine/machine.c
src/machine/machine.h

index 6e1da3744ad0052e7a315f91e557798656c6bee7..d1ebd910b3e81547f2b0243118a665bd2563e1e2 100644 (file)
@@ -36,8 +36,6 @@
 #include "unit-name.h"
 #include "user-util.h"
 
-DEFINE_TRIVIAL_CLEANUP_FUNC(Machine*, machine_free);
-
 int machine_new(Manager *manager, MachineClass class, const char *name, Machine **ret) {
         _cleanup_(machine_freep) Machine *m = NULL;
         int r;
index 30ef93b36e76db4ee3f4e66ac7cc474b04b756a6..606f117d86faed55d831bc182d323d20505fa454 100644 (file)
@@ -78,6 +78,8 @@ int machine_save(Machine *m);
 int machine_load(Machine *m);
 int machine_kill(Machine *m, KillWho who, int signo);
 
+DEFINE_TRIVIAL_CLEANUP_FUNC(Machine*, machine_free);
+
 void machine_release_unit(Machine *m);
 
 MachineState machine_get_state(Machine *u);