source: ps2launchargs/source/uLaunchELF/hdl_info/apa.h@ 1123

Last change on this file since 1123 was 1101, checked in by iritscen, 7 years ago

Added following to ps2launchargs:\n-Source code.\n-DLL needed to run ps2client.\n-Instructions for building uLaunchELF.

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#ifndef _CDVDAPA_H_
2#define _CDVDAPA_H_
3
4/* chunks_map */
5static const char MAP_AVAIL = '.';
6static const char MAP_MAIN = 'M';
7static const char MAP_SUB = 's';
8static const char MAP_COLL = 'x';
9static const char MAP_ALLOC = '*';
10
11typedef struct apa_partition_type
12{
13 int existing;
14 int modified;
15 int linked;
16 ps2_partition_header_t header;
17} apa_partition_t;
18
19
20typedef struct apa_partition_table_type
21{
22 u_long device_size_in_mb;
23 u_long total_chunks;
24 u_long allocated_chunks;
25 u_long free_chunks;
26
27 char *chunks_map;
28
29 /* existing partitions */
30 u_long part_alloc_;
31 u_long part_count;
32 apa_partition_t *parts;
33} apa_partition_table_t;
34
35void apa_ptable_free(apa_partition_table_t *table);
36
37u_long apa_partition_checksum (const ps2_partition_header_t *part);
38
39int apa_ptable_read_ex (hio_t *hio, apa_partition_table_t **table);
40
41u_long get_u32 (const void *buffer);
42void set_u32 (void *buffer, u_long val);
43
44u_short get_u16 (const void *buffer);
45void set_u16 (void *buffer, u_short val);
46
47
48#endif /* _APA_H_ */
Note: See TracBrowser for help on using the repository browser.