X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fmachine-image.h;h=10e5d0a533e50320b19ce6ff8cbce865ad6dacc0;hp=646598f9c89bb43c7f05ea498ebfd5ae350e9344;hb=d61b600dde1f267a408440011aa980e0ed44bea6;hpb=003dffde2c1b93afbc9aff24b277276f65424406 diff --git a/src/shared/machine-image.h b/src/shared/machine-image.h index 646598f9c..10e5d0a53 100644 --- a/src/shared/machine-image.h +++ b/src/shared/machine-image.h @@ -40,6 +40,11 @@ typedef struct Image { usec_t crtime; usec_t mtime; + + uint64_t size; + uint64_t size_exclusive; + uint64_t limit; + uint64_t limit_exclusive; } Image; Image *image_unref(Image *i); @@ -51,5 +56,10 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, image_hashmap_free); int image_find(const char *name, Image **ret); int image_discover(Hashmap *map); +int image_remove(Image *i); +int image_rename(Image *i, const char *new_name); +int image_clone(Image *i, const char *new_name, bool read_only); +int image_read_only(Image *i, bool b); + const char* image_type_to_string(ImageType t) _const_; ImageType image_type_from_string(const char *s) _pure_;