pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
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
38
time_t
sceKernelLibcTime
(
time_t
*t);
39
43
clock_t
sceKernelLibcClock
(
void
);
44
48
int
sceKernelLibcGettimeofday
(
struct
timeval *tp,
struct
timezone *tzp);
49
53
void
sceKernelDcacheWritebackAll
(
void
);
54
58
void
sceKernelDcacheWritebackInvalidateAll
(
void
);
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
76
typedef
struct
_SceKernelUtilsMt19937Context
{
77
unsigned
int
count
;
78
unsigned
int
state
[624];
79
}
SceKernelUtilsMt19937Context
;
80
96
int
sceKernelUtilsMt19937Init
(
SceKernelUtilsMt19937Context
*ctx,
u32
seed);
97
104
u32
sceKernelUtilsMt19937UInt
(
SceKernelUtilsMt19937Context
*ctx);
105
107
typedef
struct
_SceKernelUtilsMd5Context
{
108
unsigned
int
h
[4];
109
unsigned
int
pad
;
110
SceUShort16
usRemains
;
111
SceUShort16
usComputed
;
112
SceULong64
ullTotalLen
;
113
unsigned
char
buf
[64];
114
}
SceKernelUtilsMd5Context
;
115
125
int
sceKernelUtilsMd5Digest
(
u8
*data,
u32
size
,
u8
*digest);
126
142
int
sceKernelUtilsMd5BlockInit
(
SceKernelUtilsMd5Context
*ctx);
143
153
int
sceKernelUtilsMd5BlockUpdate
(
SceKernelUtilsMd5Context
*ctx,
u8
*data,
u32
size
);
154
163
int
sceKernelUtilsMd5BlockResult
(
SceKernelUtilsMd5Context
*ctx,
u8
*digest);
164
166
typedef
struct
_SceKernelUtilsSha1Context
{
167
unsigned
int
h
[5];
168
SceUShort16
usRemains
;
169
SceUShort16
usComputed
;
170
SceULong64
ullTotalLen
;
171
unsigned
char
buf
[64];
172
}
SceKernelUtilsSha1Context
;
173
183
int
sceKernelUtilsSha1Digest
(
u8
*data,
u32
size
,
u8
*digest);
184
201
int
sceKernelUtilsSha1BlockInit
(
SceKernelUtilsSha1Context
*ctx);
202
212
int
sceKernelUtilsSha1BlockUpdate
(
SceKernelUtilsSha1Context
*ctx,
u8
*data,
u32
size
);
213
222
int
sceKernelUtilsSha1BlockResult
(
SceKernelUtilsSha1Context
*ctx,
u8
*digest);
223
226
#ifdef __cplusplus
227
}
228
#endif
229
230
#endif
src
user
psputils.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2