source: titan/minidlna-1.0.22/tagutils/misc.h @ 13567

Last change on this file since 13567 was 13567, checked in by obi, 12 years ago

[titan] add minidlna-1.0.22 first step

File size: 1.6 KB
Line 
1//=========================================================================
2// FILENAME     : misc.h
3// DESCRIPTION  : Header for misc.c
4//=========================================================================
5// Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved.
6//=========================================================================
7
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.
12 *
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.
17 *
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/>.
20 */
21
22#ifndef _SCANNER_MISC_H
23#define _SCANNER_MISC_H
24
25typedef unsigned char __u8;
26typedef signed char __s8;
27typedef unsigned short __u16;
28typedef signed short __s16;
29typedef unsigned int __u32;
30typedef signed int __s32;
31#if __WORDSIZE == 64
32typedef unsigned long __u64;
33typedef signed long __s64;
34#else
35typedef unsigned long long __u64;
36typedef signed long long __s64;
37#endif
38
39
40inline __u16 le16_to_cpu(__u16 le16);
41inline __u32 le32_to_cpu(__u32 le32);
42inline __u64 le64_to_cpu(__u64 le64);
43inline __u8 fget_byte(FILE *fp);
44inline __u16 fget_le16(FILE *fp);
45inline __u32 fget_le32(FILE *fp);
46
47inline __u32 cpu_to_be32(__u32 cpu32);
48
49extern char * sha1_hex(char *key);
50
51#endif
Note: See TracBrowser for help on using the repository browser.