Merge branch 'Teaman-ND' into Teaman-RT
[tomato.git] / release / src / router / minidlna / tagutils / misc.h
blobc7642fef15804ad90c81aaacc21f79b4147628af
1 //=========================================================================
2 // FILENAME : misc.h
3 // DESCRIPTION : Header for misc.c
4 //=========================================================================
5 // Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved.
6 //=========================================================================
8 /* This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _SCANNER_MISC_H
23 #define _SCANNER_MISC_H
25 typedef unsigned char __u8;
26 typedef signed char __s8;
27 typedef unsigned short __u16;
28 typedef signed short __s16;
29 typedef unsigned int __u32;
30 typedef signed int __s32;
31 #if __WORDSIZE == 64
32 typedef unsigned long __u64;
33 typedef signed long __s64;
34 #else
35 typedef unsigned long long __u64;
36 typedef signed long long __s64;
37 #endif
40 inline __u16 le16_to_cpu(__u16 le16);
41 inline __u32 le32_to_cpu(__u32 le32);
42 inline __u64 le64_to_cpu(__u64 le64);
43 inline __u8 fget_byte(FILE *fp);
44 inline __u16 fget_le16(FILE *fp);
45 inline __u32 fget_le32(FILE *fp);
47 inline __u32 cpu_to_be32(__u32 cpu32);
49 extern char * sha1_hex(char *key);
51 #endif