Files
86Box/src/include/86box/cdrom_image.h

39 lines
1.0 KiB
C
Raw Normal View History

/*
2023-01-06 15:36:05 -05:00
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
2023-01-06 15:36:05 -05:00
* This file is part of the 86Box distribution.
*
* CD-ROM image file handling module header.
*
* Authors: Miran Grca, <mgrca8@gmail.com>
* RichardG, <richardg867@gmail.com>
* Cacodemon345
*
* Copyright 2016-2025 Miran Grca.
* Copyright 2016-2025 RichardG.
* Copyright 2024-2025 Cacodemon345.
*/
2017-05-18 14:03:43 -04:00
#ifndef CDROM_IMAGE_H
2022-10-15 13:38:10 -03:00
#define CDROM_IMAGE_H
2017-05-18 14:03:43 -04:00
/* Track file struct. */
typedef struct track_file_t {
int (*read)(void *priv, uint8_t *buffer, uint64_t seek, size_t count);
uint64_t (*get_length)(void *priv);
void (*close)(void *priv);
2017-05-18 14:03:43 -04:00
char fn[260];
FILE *fp;
void *priv;
void *log;
2017-05-18 14:03:43 -04:00
int motorola;
} track_file_t;
2017-05-18 14:03:43 -04:00
2025-05-27 22:03:11 -04:00
extern void *image_open(cdrom_t *dev, const char *path);
2017-05-18 14:03:43 -04:00
2022-02-18 19:42:21 -05:00
#endif /*CDROM_IMAGE_H*/