pspsdk-1.0+beta2
psputils.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * psputils.h - Prototypes for the sceUtils library.
7  *
8  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11  *
12  * $Id: psputils.h 1884 2006-04-30 08:55:54Z chip $
13  */
14 #ifndef __UTILS_H__
15 #define __UTILS_H__
16 
17 #include <psptypes.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /* Some of the structures and definitions in this file were extracted from the japanese
24  puzzle bobble main executable */
25 
31 
32 #include <sys/time.h>
33 
39 
44 
48 int sceKernelLibcGettimeofday(struct timeval *tp, struct timezone *tzp);
49 
54 
59 
63 void sceKernelDcacheWritebackRange(const void *p, unsigned int size);
64 
68 void sceKernelDcacheWritebackInvalidateRange(const void *p, unsigned int size);
69 
73 void sceKernelDcacheInvalidateRange(const void *p, unsigned int size);
74 
77  unsigned int count;
78  unsigned int state[624];
80 
97 
105 
108  unsigned int h[4];
109  unsigned int pad;
113  unsigned char buf[64];
115 
125 int sceKernelUtilsMd5Digest(u8 *data, u32 size, u8 *digest);
126 
143 
154 
164 
167  unsigned int h[5];
171  unsigned char buf[64];
173 
183 int sceKernelUtilsSha1Digest(u8 *data, u32 size, u8 *digest);
184 
202 
213 
223 
226 #ifdef __cplusplus
227 }
228 #endif
229 
230 #endif