1 // Copyright 2026 Onde Inference (Splitfire AB). All rights reserved.
2 // Use of this source code is governed by the MIT license.
3 //
4 // onde_inference_plugin.cpp
5 //
6 // Minimal Flutter Windows plugin registration entry point.
7 //
8 // All LLM inference logic runs inside the Rust shared library
9 // (onde_inference_dart.dll) loaded at runtime by the flutter_rust_bridge Dart
10 // package. This C++ file exists solely so that the Flutter tooling recognises
11 // onde_inference as a valid Windows plugin and links it into the host
12 // application.
13
14 #include "onde_inference_plugin.h"
15
16 // This must be included before many other Windows headers.
17 #include <windows.h>
18
19 #include <flutter/plugin_registrar_windows.h>
20
21 #include <memory>
22
23 namespace onde_inference {
24
25 // static
26 void OndeInferencePlugin::RegisterWithRegistrar(
27 flutter::PluginRegistrarWindows* registrar) {
28 auto plugin = std::make_unique<OndeInferencePlugin>();
29 registrar->AddPlugin(std::move(plugin));
30 }
31
32 OndeInferencePlugin::OndeInferencePlugin() {}
33
34 OndeInferencePlugin::~OndeInferencePlugin() {}
35
36 } // namespace onde_inference