-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmatch.h
More file actions
26 lines (19 loc) · 788 Bytes
/
match.h
File metadata and controls
26 lines (19 loc) · 788 Bytes
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
/* jdupes file matching functions
* This file is part of jdupes; see jdupes.c for license information */
#ifndef JDUPES_MATCH_H
#define JDUPES_MATCH_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
#include "jdupes.h"
/* registerfile() direction options */
enum tree_direction { NONE, LEFT, RIGHT };
void registerpair(file_t **matchlist, file_t *newmatch, int (*comparef)(file_t *f1, file_t *f2));
void registerfile(filetree_t * restrict * const restrict nodeptr, const enum tree_direction d, file_t * const restrict file);
file_t **checkmatch(filetree_t * restrict tree, file_t * const restrict file);
int confirmmatch(const char * const restrict file1, const char * const restrict file2, const off_t size);
#ifdef __cplusplus
}
#endif
#endif /* JDUPES_MATCH_H */