#include <jni.h>
#include "aviationOnLoad.hpp"

// Forward declaration — defined in PlaybackCoordinatorJNI.cpp
extern "C" void PlaybackCoordinatorJNI_setJavaVM(JavaVM* vm);

JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
  // Give our coordinator JNI bridge access to the VM for thread attachment
  PlaybackCoordinatorJNI_setJavaVM(vm);
  return margelo::nitro::aviation::initialize(vm);
}
