diff options
Diffstat (limited to 'src/lib/formats/all.h')
-rw-r--r-- | src/lib/formats/all.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/formats/all.h b/src/lib/formats/all.h new file mode 100644 index 00000000000..7c252a5bea4 --- /dev/null +++ b/src/lib/formats/all.h @@ -0,0 +1,27 @@ +// license:BSD-3-Clause +// copyright-holders:Olivier Galibert + +// Enumerate all the compiled-in formats + +#ifndef MAME_FORMATS_ALL_H +#define MAME_FORMATS_ALL_H + +#pragma once + +#include "cassimg.h" +#include "flopimg.h" +#include "fsmgr.h" + +struct mame_formats_enumerator { + virtual ~mame_formats_enumerator() = default; + + virtual void category(const char *name) = 0; + virtual void add(const cassette_image::Format *const *formats) = 0; + virtual void add(const floppy_image_format_t &format) = 0; + virtual void add(const fs::manager_t &fs) = 0; +}; + +void mame_formats_full_list(mame_formats_enumerator &en); + +#endif + |