diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-03-13 14:35:43 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-03-13 14:39:57 -0400 |
commit | c4676b38309bba5d24efeb22f52fbeaace7dcbe2 (patch) | |
tree | 2c61b43e916e53f3a015ff31081252b6bd6c730e /ctx.h | |
parent | b277c47ea4154e5d5acc0927d8f8374f489b4437 (diff) | |
download | bfs-c4676b38309bba5d24efeb22f52fbeaace7dcbe2.tar.xz |
ctx: Factor out exec flushing behaviour into bfs_ctx_flush()
Diffstat (limited to 'ctx.h')
-rw-r--r-- | ctx.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,6 @@ /**************************************************************************** * bfs * - * Copyright (C) 2015-2021 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2015-2022 Tavian Barnes <tavianator@tavianator.com> * * * * Permission to use, copy, modify, and/or distribute this software for any * * purpose with or without fee is hereby granted. * @@ -179,6 +179,14 @@ const struct bfs_mtab *bfs_ctx_mtab(const struct bfs_ctx *ctx); struct CFILE *bfs_ctx_dedup(struct bfs_ctx *ctx, struct CFILE *cfile, const char *path); /** + * Flush any caches for consistency with external processes. + * + * @param ctx + * The bfs context. + */ +void bfs_ctx_flush(const struct bfs_ctx *ctx); + +/** * Dump the parsed command line. * * @param ctx |