summaryrefslogtreecommitdiffstats
path: root/ctx.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-03-13 14:35:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-03-13 14:39:57 -0400
commitc4676b38309bba5d24efeb22f52fbeaace7dcbe2 (patch)
tree2c61b43e916e53f3a015ff31081252b6bd6c730e /ctx.h
parentb277c47ea4154e5d5acc0927d8f8374f489b4437 (diff)
downloadbfs-c4676b38309bba5d24efeb22f52fbeaace7dcbe2.tar.xz
ctx: Factor out exec flushing behaviour into bfs_ctx_flush()
Diffstat (limited to 'ctx.h')
-rw-r--r--ctx.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ctx.h b/ctx.h
index 02d296f..8f8101d 100644
--- a/ctx.h
+++ b/ctx.h
@@ -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