00001 00018 #ifndef CoreMidi4J_CoreMidi4JUtilities_h 00019 #define CoreMidi4J_CoreMidi4JUtilities_h 00020 00021 #include <iostream> 00022 00023 #include "CoreMidi4J.h" 00024 #include <CoreMIDI/CoreMIDI.h> 00025 00037 void ThrowException(JNIEnv *env, CFStringRef function, OSStatus status); 00038 00046 void printJniStatus(int status); 00047 00049 // Type Definitions 00051 00057 typedef struct midiCallBackParameters { 00061 JavaVM *jvm; // Pointer to Java Virtual Machine 00065 jobject object; // The Java object that will be called 00069 jmethodID methodID; // The Java messageCallback method that will be called 00070 00071 } MIDI_CALLBACK_PARAMETERS; 00072 00073 #endif