summaryrefslogtreecommitdiff
path: root/lib/fstree/internal.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 16:11:09 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-18 16:11:36 +0100
commit2262af9f82d8a07751acea042844906649053a9f (patch)
treec104323ccec9610f60e9d56535366d9ddbbfeb69 /lib/fstree/internal.h
parentf4604f8d0bb66ad7a777877dd01b069a82e1b18d (diff)
Cleanup: internalize some fstree functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstree/internal.h')
-rw-r--r--lib/fstree/internal.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/fstree/internal.h b/lib/fstree/internal.h
new file mode 100644
index 0000000..e8e5eef
--- /dev/null
+++ b/lib/fstree/internal.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/*
+ * internal.h
+ *
+ * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
+ */
+#ifndef FSTREE_INTERNAL_H
+#define FSTREE_INTERNAL_H
+
+#include "config.h"
+#include "fstree.h"
+
+/* ASCIIbetically sort a linked list of tree nodes */
+tree_node_t *tree_node_list_sort(tree_node_t *head);
+
+/*
+ If the environment variable SOURCE_DATE_EPOCH is set to a parsable number
+ that fits into an unsigned 32 bit value, return its value. Otherwise,
+ default to 0.
+ */
+sqfs_u32 get_source_date_epoch(void);
+
+#endif /* FSTREE_INTERNAL_H */