aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-05 15:41:41 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-08 19:17:35 +0200
commita412425bca4bb90a7c1b35acac6b185158f3cd4f (patch)
tree2e7d919b2c24f9a7a15fdf7975b66dc25a173217 /include
parentd6e2106e96b6969e045251d972e1adcceb9728df (diff)
Cleanup: move source date epoch code back to libutil
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/util/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/util/util.h b/include/util/util.h
index c18a558..6e34a82 100644
--- a/include/util/util.h
+++ b/include/util/util.h
@@ -62,4 +62,11 @@ SQFS_INTERNAL int canonicalize_name(char *filename);
*/
SQFS_INTERNAL bool is_filename_sane(const char *name, bool check_os_specific);
+/*
+ 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_INTERNAL sqfs_u32 get_source_date_epoch(void);
+
#endif /* SQFS_UTIL_H */