-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathretro_cdimage.h
45 lines (36 loc) · 1.01 KB
/
retro_cdimage.h
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
35
36
37
38
39
40
41
42
43
44
45
#ifndef LIBRETRO_RETRO_CDIMAGE_H_INCLUDED
#define LIBRETRO_RETRO_CDIMAGE_H_INCLUDED
#include "cuefile.h"
#include <streams/interface_stream.h>
struct cdimage_s
{
intfstream_t *fp;
int sector_size;
int sector_offset;
};
typedef struct cdimage_s cdimage_t;
int
retro_cdimage_open_chd(const char *path_,
cdimage_t *cdimage_);
int
retro_cdimage_open_iso(const char *path_,
cdimage_t *cdimage_);
int
retro_cdimage_open_bin(const char *path_,
cdimage_t *cdimage_);
int
retro_cdimage_open_cue(const char *path_,
cdimage_t *cdimage_);
int
retro_cdimage_open(const char *path_,
cdimage_t *cdimage_);
int
retro_cdimage_close(cdimage_t *cdimage_);
ssize_t
retro_cdimage_read(cdimage_t *cdimage_,
size_t sector_,
void *buf_,
size_t bufsize_);
ssize_t
retro_cdimage_get_number_of_logical_blocks(cdimage_t *cdimage_);
#endif