machined: expose machine_freep in machine.h

This commit is contained in:
Sam Leonard
2024-05-08 09:52:15 +01:00
committed by Luca Boccassi
parent 8fcf504b8c
commit 71a15f37af
2 changed files with 2 additions and 2 deletions
-2
View 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;
+2
View 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);