]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/machine-image.h
machine-image: add a generic API to determine metadata of any image
[thirdparty/systemd.git] / src / shared / machine-image.h
index 1b1194e4426e649fb8a832c69a3ae503f754b5a9..9573000a5ac95d52228646384e40ae91d9eef483 100644 (file)
@@ -53,6 +53,13 @@ typedef struct Image {
         uint64_t limit;
         uint64_t limit_exclusive;
 
+        char *hostname;
+        sd_id128_t machine_id;
+        char **machine_info;
+        char **os_release;
+
+        bool metadata_valid;
+
         void *userdata;
 } Image;
 
@@ -80,6 +87,8 @@ int image_name_lock(const char *name, int operation, LockFile *ret);
 
 int image_set_limit(Image *i, uint64_t referenced_max);
 
+int image_read_metadata(Image *i);
+
 static inline bool IMAGE_IS_HIDDEN(const struct Image *i) {
         assert(i);