]> git.donarmstrong.com Git - fastq-tools.git/blobdiff - src/parse.h
Link against libm
[fastq-tools.git] / src / parse.h
index 6224ab8d07368e735cfcb7d504ea67da05994b6e..0f697e5b1d5ae6efa5abe1e44f84f6fc64efdf16 100644 (file)
@@ -12,6 +12,7 @@
 #define FASTQ_TOOLS_PARSE_H
 
 #include <stdbool.h>
+#include <stdint.h>
 #include <stdlib.h>
 
 /* A string structure to keep-track of a reserved space. */
@@ -41,6 +42,14 @@ seq_t* seq_create();
 void seq_free(seq_t* seq);
 
 
+/* Hash a fastq entry. */
+uint32_t seq_hash(const seq_t* seq);
+
+/* Set the seed to use for seq_hash. Different seeds result in different hash
+ * functions. */
+void seq_hash_set_seed(uint32_t seed);
+
+
 /* Internal data for the fastq parser. */
 typedef struct fastq_t_ fastq_t;