machined: move declaration of manager_object to machined-dbus.h

This commit is contained in:
Mike Yuan
2026-03-04 14:32:16 +01:00
parent 08e4cf491a
commit a521abbf27
4 changed files with 10 additions and 4 deletions
+3 -2
View File
@@ -26,6 +26,7 @@
#include "machine.h"
#include "machine-dbus.h"
#include "machined.h"
#include "machined-dbus.h"
#include "namespace-util.h"
#include "operation.h"
#include "os-util.h"
@@ -1451,8 +1452,8 @@ const BusObjectImplementation manager_object = {
"/org/freedesktop/machine1",
"org.freedesktop.machine1.Manager",
.vtables = BUS_VTABLES(manager_vtable),
.children = BUS_IMPLEMENTATIONS( &machine_object,
&image_object ),
.children = BUS_IMPLEMENTATIONS(&machine_object,
&image_object),
};
int match_job_removed(sd_bus_message *message, void *userdata, sd_bus_error *error) {
+6
View File
@@ -0,0 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "machine-forward.h"
extern const BusObjectImplementation manager_object;
+1
View File
@@ -23,6 +23,7 @@
#include "hostname-util.h"
#include "machine.h"
#include "machined.h"
#include "machined-dbus.h"
#include "machined-varlink.h"
#include "main-func.h"
#include "mkdir-label.h"
-2
View File
@@ -42,8 +42,6 @@ typedef struct Manager {
int manager_add_machine(Manager *m, const char *name, Machine **ret);
int manager_get_machine_by_pidref(Manager *m, const PidRef *pidref, Machine **ret);
extern const BusObjectImplementation manager_object;
int match_reloading(sd_bus_message *message, void *userdata, sd_bus_error *error);
int match_unit_removed(sd_bus_message *message, void *userdata, sd_bus_error *error);
int match_properties_changed(sd_bus_message *message, void *userdata, sd_bus_error *error);