summaryrefslogtreecommitdiffstats
path: root/pool.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:12:14 +0000
commit4b8a0f3f3dcf60dac2ce308ea08d413a535af29f (patch)
tree0f09c0ad2a4d0f535d89040a63dc3a866a6606e6 /pool.h
parentInitial commit. (diff)
downloadreprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.tar.xz
reprepro-4b8a0f3f3dcf60dac2ce308ea08d413a535af29f.zip
Adding upstream version 5.4.4.upstream/5.4.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--pool.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/pool.h b/pool.h
new file mode 100644
index 0000000..a346c48
--- /dev/null
+++ b/pool.h
@@ -0,0 +1,33 @@
+#ifndef REPREPRO_POOL_H
+#define REPREPRO_POOL_H
+
+#ifndef REPREPRO_ERROR_H
+#include "error.h"
+#endif
+#ifndef REPREPRO_DATABASE_H
+#include "database.h"
+#endif
+
+extern bool pool_havedereferenced;
+
+/* called from references.c to note the file lost a reference */
+retvalue pool_dereferenced(const char *);
+/* called from files.c to note the file was added or forgotten */
+retvalue pool_markadded(const char *);
+retvalue pool_markdeleted(const char *);
+
+/* Remove all files that lost their last reference, or only count them */
+retvalue pool_removeunreferenced(bool /*delete*/);
+
+/* Delete all added files that are not used, or only count them */
+void pool_tidyadded(bool deletenew);
+
+/* delete and forget a single file */
+retvalue pool_delete(const char *);
+
+/* notify outhook of new files */
+void pool_sendnewfiles(void);
+
+/* free all memory, to make valgrind happier */
+void pool_free(void);
+#endif