aboutsummaryrefslogtreecommitdiff
path: root/difftool/sqfsdiff.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-27 11:59:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-04-27 11:59:02 +0200
commit20b0d509f67dea802706cd6b80b5e20d14988931 (patch)
tree3a87ea358b1206f6823777693d109896d6908283 /difftool/sqfsdiff.h
parent9e332a2d3eddcc262476ac263e03df021b3c44b4 (diff)
Cleanup directory structure of the binary programs
Instead of having the binary programs in randomly named subdirectories, move all of them to a "bin" subdirectory, similar to the utility libraries that have subdirectories within "lib" and give the subdirectories the propper names (e.g. have gensquashfs source in a directory *actually* named "gensquashfs"). Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool/sqfsdiff.h')
-rw-r--r--difftool/sqfsdiff.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/difftool/sqfsdiff.h b/difftool/sqfsdiff.h
deleted file mode 100644
index 94fce93..0000000
--- a/difftool/sqfsdiff.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * sqfsdiff.h
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef DIFFTOOL_H
-#define DIFFTOOL_H
-
-#include "config.h"
-#include "common.h"
-#include "fstree.h"
-
-#include <stdlib.h>
-#include <getopt.h>
-#include <string.h>
-#include <errno.h>
-
-#define MAX_WINDOW_SIZE (1024 * 1024 * 4)
-
-typedef struct {
- sqfs_compressor_config_t cfg;
- sqfs_compressor_t *cmp;
- sqfs_super_t super;
- sqfs_file_t *file;
- sqfs_id_table_t *idtbl;
- sqfs_dir_reader_t *dr;
- sqfs_tree_node_t *root;
- sqfs_data_reader_t *data;
-} sqfs_state_t;
-
-typedef struct {
- const char *old_path;
- const char *new_path;
- int compare_flags;
- sqfs_state_t sqfs_old;
- sqfs_state_t sqfs_new;
- bool compare_super;
- const char *extract_dir;
-} sqfsdiff_t;
-
-enum {
- COMPARE_NO_PERM = 0x01,
- COMPARE_NO_OWNER = 0x02,
- COMPARE_NO_CONTENTS = 0x04,
- COMPARE_TIMESTAMP = 0x08,
- COMPARE_INODE_NUM = 0x10,
- COMPARE_EXTRACT_FILES = 0x20,
-};
-
-int compare_dir_entries(sqfsdiff_t *sd, sqfs_tree_node_t *old,
- sqfs_tree_node_t *new);
-
-char *node_path(const sqfs_tree_node_t *n);
-
-int compare_files(sqfsdiff_t *sd, const sqfs_inode_generic_t *old,
- const sqfs_inode_generic_t *new, const char *path);
-
-int node_compare(sqfsdiff_t *sd, sqfs_tree_node_t *a, sqfs_tree_node_t *b);
-
-int compare_super_blocks(const sqfs_super_t *a, const sqfs_super_t *b);
-
-int extract_files(sqfsdiff_t *sd, const sqfs_inode_generic_t *old,
- const sqfs_inode_generic_t *new,
- const char *path);
-
-void process_options(sqfsdiff_t *sd, int argc, char **argv);
-
-#endif /* DIFFTOOL_H */