summaryrefslogtreecommitdiff
path: root/mpq-misc.c
blob: 8aacfcec6e30e91689df23a5887598fc78f05f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "mpq-misc.h"
#include "mpq-crypto.h"

/*
 * The various string hashing function.
 */

uint32_t mpqlib_hash_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 0);
}

uint32_t mpqlib_hashA_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 1);
}

uint32_t mpqlib_hashB_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 2);
}