diff --git a/src/sdk/examples/order_plugin_example.cpp b/src/sdk/examples/order_plugin_example.cpp index 82747faea..69a715c5c 100644 --- a/src/sdk/examples/order_plugin_example.cpp +++ b/src/sdk/examples/order_plugin_example.cpp @@ -304,11 +304,12 @@ void DynamicJoin::on_child_change(OrderKey, ChildState const &st) { } } +// This is called by the spark daemon at startup. In this call we +// describe our algo's parameters and register a factory function to +// create an instance of the algo. extern "C" void init_spark_plugin(bts::SparkServices &serv) { using namespace bts; - // Describe our new algo order so that Spark can generate a GUI for - // it. DynamicOrderDescriptor join_desc; // Start by naming our order type