summaryrefslogtreecommitdiff
path: root/src/htsinthash.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-10 19:07:51 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-10 19:07:51 +0000
commita085b2b2fa78158c9c60debb9c2f8d813ea528ae (patch)
treed82b60211bd12fd9c7e14ac1ddc16a610c444625 /src/htsinthash.h
parent67b8737ed429810ef35cf464cc924471c5fb29ef (diff)
Hashtable: names for debugging, and better logging
Diffstat (limited to 'src/htsinthash.h')
-rw-r--r--src/htsinthash.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/htsinthash.h b/src/htsinthash.h
index 248a697..037e25d 100644
--- a/src/htsinthash.h
+++ b/src/htsinthash.h
@@ -241,6 +241,18 @@ void inthash_set_assert_handler(inthash hashtable,
void *arg);
/**
+ * Set the hashtable name, for degugging purpose.
+ * name: the hashtable name (ASCII or UTF-8)
+ */
+void inthash_set_name(inthash hashtable, const char *name);
+
+/**
+ * Get the hashtable name, for degugging purpose.
+ * Return NULL if no name was defined.
+ **/
+const char* inthash_get_name(inthash hashtable);
+
+/**
* Read an integer entry from the hashtable.
* Return non-zero value upon success and sets intvalue.
**/