owntone-server/src/misc.h

44 lines
663 B
C
Raw Normal View History

2009-04-30 08:25:52 -04:00
#ifndef __MISC_H__
#define __MISC_H__
#include <stdint.h>
2009-04-30 08:25:52 -04:00
int
safe_atoi32(const char *str, int32_t *val);
2009-04-30 08:25:52 -04:00
2010-02-08 08:58:14 -05:00
int
safe_atou32(const char *str, uint32_t *val);
2010-05-05 13:03:53 -04:00
int
safe_hextou32(const char *str, uint32_t *val);
2009-04-30 08:25:52 -04:00
int
safe_atoi64(const char *str, int64_t *val);
2010-01-10 06:09:29 -05:00
2010-02-08 08:58:14 -05:00
int
safe_atou64(const char *str, uint64_t *val);
2010-04-04 12:07:32 -04:00
int
safe_hextou64(const char *str, uint64_t *val);
char *
m_realpath(const char *pathname);
char *
unicode_fixup_string(char *str);
uint32_t
djb_hash(void *data, size_t len);
2009-05-01 14:56:22 -04:00
char *
b64_decode(const char *b64);
2010-04-12 12:22:38 -04:00
char *
b64_encode(uint8_t *in, size_t len);
uint64_t
murmur_hash64(const void *key, int len, uint32_t seed);
2009-04-30 08:25:52 -04:00
#endif /* !__MISC_H__ */