blob: 0dea6d5d3ea45cc36233003f863c1f79b18bb289 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
* difftool.h
*
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
#ifndef DIFFTOOL_H
#define DIFFTOOL_H
#include "config.h"
#include "fstree.h"
#include "util.h"
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#define MAX_WINDOW_SIZE (1024 * 1024 * 4)
extern const char *first_path;
extern const char *second_path;
extern int compare_flags;
enum {
COMPARE_NO_PERM = 0x01,
COMPARE_NO_OWNER = 0x02,
};
int compare_dir_entries(tree_node_t *a, tree_node_t *b);
char *node_path(tree_node_t *n);
int compare_files(file_info_t *a, file_info_t *b, const char *path);
int node_compare(tree_node_t *a, tree_node_t *b);
#endif /* DIFFTOOL_H */
|