aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree/internal.h
blob: d14fb4fcec2dcab21dc45ac2ff24ec95d7385cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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"

/*
  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);

void fstree_insert_sorted(tree_node_t *root, tree_node_t *n);

#endif /* FSTREE_INTERNAL_H */