forked from markfasheh/duperemove
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jack Kenrick <github@jack.fr.eu.org>
- Loading branch information
Jack Kenrick
committed
Mar 2, 2015
1 parent
2258622
commit 9e4b2dc
Showing
8 changed files
with
85 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
#ifndef __DTREE__ | ||
#define __DTREE__ | ||
|
||
#include <stdint.h> | ||
#include "rbtree.h" | ||
#include "list.h" | ||
|
||
struct d_tree { | ||
unsigned char *digest; | ||
struct rb_node t_node; | ||
unsigned char *digest; | ||
struct rb_node t_node; | ||
}; | ||
|
||
struct d_tree *digest_new(unsigned char *digest); | ||
int digest_insert(struct rb_root *root, struct d_tree *token); | ||
struct d_tree *digest_find(struct rb_root *root, | ||
unsigned char* digest); | ||
unsigned char *digest); | ||
|
||
int digest_count(struct rb_root *root); | ||
uint64_t digest_count(struct rb_root *root); | ||
|
||
#endif /* __DTREE__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.