1 #ifndef __MATCH_H
2 #define __MATCH_H
3 
4 // SSDEEP
5 // $Id$
6 // Copyright (C) 2012 Kyrus.
7 
8 #include "ssdeep.h"
9 #include "filedata.h"
10 
11 // *********************************************************************
12 // Matching functions
13 // *********************************************************************
14 
15 /// @brief Match the file f against the set of knowns
16 ///
17 /// @return Returns false if there are no matches, true if at least one match
18 /// @param s State variable
19 /// @param f Filedata structure for the file.
20 bool match_compare(state *s, Filedata * f);
21 
22 /// @brief Load a file of known hashes
23 ///
24 /// @return Returns false on success, true on error
25 bool match_load(state *s, const char *fn);
26 
27 /// @brief Add a single new hash to the set of known hashes
28 ///
29 /// @return Returns false on success, true on error
30 bool match_add(state *s, Filedata * f);
31 
32 /// Find and display all matches in the set of known hashes
33 bool find_matches_in_known(state *s);
34 
35 /// Load the known hashes from the file fn and compare them to the
36 /// set of known hashes
37 bool match_compare_unknown(state *s, const char * fn);
38 
39 /// Display the results of clustering operations
40 void display_clusters(const state *s);
41 
42 
43 
44 #endif   // ifndef __MATCH_H
45