mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-11 23:13:24 -05:00
25 lines
370 B
C
25 lines
370 B
C
|
/*
|
||
|
* simple utility functions
|
||
|
*/
|
||
|
|
||
|
#ifndef _UTIL_H_
|
||
|
#define _UTIL_H_
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
# include "config.h"
|
||
|
#endif
|
||
|
|
||
|
#ifdef HAVE_STDINT_H
|
||
|
# include <stdint.h>
|
||
|
#endif
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
/* simple hashing functions */
|
||
|
extern uint32_t util_djb_hash_block(unsigned char *data, uint32_t len);
|
||
|
extern uint32_t util_djb_hash_str(char *str);
|
||
|
|
||
|
|
||
|
#endif /* _UTIL_H_ */
|
||
|
|