pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
pspreg.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
* pspreg.h - Prototypes for the sceReg library.
7
*
8
* Copyright (c) 2005 James F
9
*
10
* $Id: pspreg.h 2433 2008-10-15 10:00:27Z iwn $
11
*/
12
13
#ifndef __REG_H__
14
#define __REG_H__
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
22
24
#define SYSTEM_REGISTRY "/system"
25
27
#define REG_KEYNAME_SIZE 27
28
30
enum
RegKeyTypes
31
{
33
REG_TYPE_DIR
= 1,
35
REG_TYPE_INT
= 2,
37
REG_TYPE_STR
= 3,
39
REG_TYPE_BIN
= 4,
40
};
41
43
typedef
unsigned
int
REGHANDLE
;
44
46
struct
RegParam
47
{
48
unsigned
int
regtype
;
/* 0x0, set to 1 only for system */
50
char
name
[256];
/* 0x4-0x104 */
52
unsigned
int
namelen
;
/* 0x104 */
54
unsigned
int
unk2
;
/* 0x108 */
56
unsigned
int
unk3
;
/* 0x10C */
57
};
58
68
int
sceRegOpenRegistry
(
struct
RegParam
*reg,
int
mode, REGHANDLE *h);
69
77
int
sceRegFlushRegistry
(REGHANDLE h);
78
86
int
sceRegCloseRegistry
(REGHANDLE h);
87
98
int
sceRegOpenCategory
(REGHANDLE h,
const
char
*
name
,
int
mode, REGHANDLE *hd);
99
108
int
sceRegRemoveCategory
(REGHANDLE h,
const
char
*
name
);
109
117
int
sceRegCloseCategory
(REGHANDLE hd);
118
126
int
sceRegFlushCategory
(REGHANDLE hd);
127
139
int
sceRegGetKeyInfo
(REGHANDLE hd,
const
char
*
name
, REGHANDLE *hk,
unsigned
int
*
type
,
SceSize
*
size
);
140
151
int
sceRegGetKeyInfoByName
(REGHANDLE hd,
const
char
*
name
,
unsigned
int
*
type
,
SceSize
*
size
);
152
163
int
sceRegGetKeyValue
(REGHANDLE hd, REGHANDLE hk,
void
*buf,
SceSize
size
);
164
175
int
sceRegGetKeyValueByName
(REGHANDLE hd,
const
char
*
name
,
void
*buf,
SceSize
size
);
176
187
int
sceRegSetKeyValue
(REGHANDLE hd,
const
char
*
name
,
const
void
*buf,
SceSize
size
);
188
197
int
sceRegGetKeysNum
(REGHANDLE hd,
int
*num);
198
208
int
sceRegGetKeys
(REGHANDLE hd,
char
*buf,
int
num);
209
220
int
sceRegCreateKey
(REGHANDLE hd,
const
char
*
name
,
int
type
,
SceSize
size
);
221
229
int
sceRegRemoveRegistry
(
struct
RegParam
*reg);
230
233
#ifdef __cplusplus
234
}
235
#endif
236
237
#endif
src
registry
pspreg.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2