X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fmachine-image.h;h=bf41b2e78596d0dcea2009b52363db8ae654e7f4;hb=093c2cfe3b1ae6081f12927ae7906d90d6623534;hp=75fa5f453371267ac9e1a3fcfec9893f5f3292db;hpb=c19de71113f956809995fc68817e055e9f61f607;p=elogind.git diff --git a/src/shared/machine-image.h b/src/shared/machine-image.h index 75fa5f453..bf41b2e78 100644 --- a/src/shared/machine-image.h +++ b/src/shared/machine-image.h @@ -45,6 +45,8 @@ typedef struct Image { uint64_t usage_exclusive; uint64_t limit; uint64_t limit_exclusive; + + void *userdata; } Image; Image *image_unref(Image *i); @@ -68,3 +70,5 @@ bool image_name_is_valid(const char *s) _pure_; int image_path_lock(const char *path, int operation, LockFile *global, LockFile *local); int image_name_lock(const char *name, int operation, LockFile *ret); + +int image_set_limit(Image *i, uint64_t referenced_max);