summaryrefslogtreecommitdiff
path: root/include/kernel/idstorage.h
blob: b91a5633c50e08d60a219d50c78e6c6c15ae83f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
	Vita Development Suite Libraries
*/

#ifndef _VDSUITE_KERNEL_IDSTORAGE_H
#define _VDSUITE_KERNEL_IDSTORAGE_H

#include <scetypes.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @param[in]  leafnum - 0x0 ~ 0x80 / leafnum > 0x80 = error
 * @param[out] buf     - Leaf data, size is 512 byte
 *
 * @return 0 on success, < 0 on error.
 */
int sceIdStorageReadLeaf(SceSize leafnum, void *buf);
  
/**
 * @param[in] leafnum - 0x0 ~ 0x80 / leafnum > 0x80 = error
 * @param[in] buf     - Leaf data, size is 512 byte
 *
 * @return 0 on success, < 0 on error.
 */
int sceIdStorageWriteLeaf(SceSize leafnum, const void *buf);

#ifdef __cplusplus
}
#endif

#endif /* _VDSUITE_KERNEL_IDSTORAGE_H */