mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
mmap-cache: add MMapCache trivial cleanup helpers
Enable _cleanup_(mmap_cache_unrefp) style cleanup for MMapCache*
This commit is contained in:
parent
a8da63309c
commit
333d067262
@ -13,6 +13,7 @@ typedef struct MMapFileDescriptor MMapFileDescriptor;
|
||||
MMapCache* mmap_cache_new(void);
|
||||
MMapCache* mmap_cache_ref(MMapCache *m);
|
||||
MMapCache* mmap_cache_unref(MMapCache *m);
|
||||
DEFINE_TRIVIAL_CLEANUP_FUNC(MMapCache*, mmap_cache_unref);
|
||||
|
||||
int mmap_cache_fd_get(
|
||||
MMapFileDescriptor *f,
|
||||
|
Loading…
x
Reference in New Issue
Block a user