@@ -38,6 +38,8 @@ namespace proxy_wasm {
3838 * Registry for Plugin implementation.
3939 */
4040struct NullPluginRegistry {
41+ void (*proxy_abi_version_0_1_0_)() = nullptr ;
42+ void (*proxy_on_log_)(uint32_t context_id) = nullptr ;
4143 uint32_t (*proxy_validate_configuration_)(uint32_t root_context_id,
4244 uint32_t plugin_configuration_size) = nullptr ;
4345 void (*proxy_on_context_create_)(uint32_t context_id, uint32_t parent_context_id) = nullptr ;
@@ -127,14 +129,21 @@ class NullPlugin : public NullVmPlugin {
127129 extern NullPluginRegistry *context_registry_; \
128130 struct RegisterContextFactory { \
129131 explicit RegisterContextFactory (null_plugin::ContextFactory context_factory, \
130- null_plugin::RootFactory root_factory = nullptr , \
132+ null_plugin::RootFactory root_factory, \
131133 StringView root_id = " " ) { \
132134 if (!context_registry_) { \
133135 context_registry_ = new NullPluginRegistry; \
134136 } \
135137 context_registry_->context_factories [std::string (root_id)] = context_factory; \
136138 context_registry_->root_factories [std::string (root_id)] = root_factory; \
137139 } \
140+ explicit RegisterContextFactory (null_plugin::ContextFactory context_factory, \
141+ StringView root_id = " " ) { \
142+ if (!context_registry_) { \
143+ context_registry_ = new NullPluginRegistry; \
144+ } \
145+ context_registry_->context_factories [std::string (root_id)] = context_factory; \
146+ } \
138147 explicit RegisterContextFactory (null_plugin::RootFactory root_factory, \
139148 StringView root_id = " " ) { \
140149 if (!context_registry_) { \
0 commit comments