Commit ec992eee authored by tourettes's avatar tourettes Committed by npzacs

Define function pointers for have_file and file_open functions

Fixes compilation issue with older Visual Studio C++ compilers
parent 36c4f202
......@@ -31,13 +31,16 @@
struct bd_file_s;
struct bd_enc_info;
typedef struct bd_file_s * (*file_openFp)(void *, const char *);
typedef int (*have_fileFp)(void *, const char *, const char *);
/* device to use */
struct dec_dev {
void *file_open_handle;
int (*have_file)(void *, const char *, const char *);
struct bd_file_s * (*file_open)(void *, const char *);
const char *root; /* may be NULL if disc is not mounted */
const char *device; /* may be null if not reading from real device */
void *file_open_handle;
have_fileFp have_file;
file_openFp file_open;
const char *root; /* may be NULL if disc is not mounted */
const char *device; /* may be null if not reading from real device */
};
typedef struct bd_dec BD_DEC;
......
......@@ -81,7 +81,7 @@ BD_DISC *disc_open(const char *device_path,
X_FREE(disc_root);
}
struct dec_dev dev = { p, (void *)_disc_have_file, (void*)disc_open_path, p->disc_root, p->disc_device };
struct dec_dev dev = { p, (have_fileFp)_disc_have_file, (file_openFp)disc_open_path, p->disc_root, p->disc_device };
p->dec = dec_init(&dev, enc_info, keyfile_path, regs, psr_read, psr_write);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment