aboutsummaryrefslogtreecommitdiff
path: root/include/adlmidi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/adlmidi.h')
-rw-r--r--include/adlmidi.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 25691da..e3554a1 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -28,6 +28,17 @@
extern "C" {
#endif
+#define ADLMIDI_VERSION_MAJOR 1
+#define ADLMIDI_VERSION_MINOR 3
+#define ADLMIDI_VERSION_PATCHLEVEL 1
+
+#define ADLMIDI_TOSTR(s) #s
+#define ADLMIDI_VERSION \
+ ADLMIDI_TOSTR(OPNMIDI_VERSION_MAJOR) "." \
+ ADLMIDI_TOSTR(OPNMIDI_VERSION_MINOR) "." \
+ ADLMIDI_TOSTR(OPNMIDI_VERSION_PATCHLEVEL)
+
+
#include <stddef.h>
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
@@ -117,9 +128,18 @@ extern int adl_openBankData(struct ADL_MIDIPlayer *device, const void *mem, unsi
/*Returns name of currently used OPL3 emulator*/
extern const char *adl_emulatorName();
+typedef struct {
+ ADL_UInt16 major;
+ ADL_UInt16 minor;
+ ADL_UInt16 patch;
+} ADL_Version;
+
/*Returns string which contains a version number*/
extern const char *adl_linkedLibraryVersion();
+/*Returns structure which contains a version number of library */
+extern const ADL_Version *adl_linkedVersion();
+
/*Returns string which contains last error message of initialization*/
extern const char *adl_errorString();