1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <inttypes.h> 5 #include <stdbool.h> 6 7 #include "bus-map-properties.h" 8 #include "time-util.h" 9 10 int verb_list_machines(int argc, char *argv[], void *userdata); 11 12 struct machine_info { 13 bool is_host; 14 char *name; 15 char *version; 16 char *tainted; 17 uint64_t timestamp; 18 uint32_t n_names; 19 uint32_t n_failed_units; 20 uint32_t n_jobs; 21 char *control_group; 22 char *state; 23 }; 24 25 void machine_info_clear(struct machine_info *info); 26 27 extern const struct bus_properties_map machine_info_property_map[]; 28