Skip to content

Commit 75285c7

Browse files
authored
docs: add missing part for the c plugin (#271)
Replace #216. Signed-off-by: hydai <[email protected]>
1 parent ca67760 commit 75285c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/contribute/plugin/develop_plugin_c.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ WasmEdge_Result HostFuncSub(void *Data,
186186
/* Pointer to the plug-in option description array (Work in progress). */
187187
.ProgramOptions = NULL,
188188
}};
189+
190+
/* Ensure the Plugin Descriptor is exported */
191+
WASMEDGE_CAPI_PLUGIN_EXPORT const WasmEdge_PluginDescriptor *
192+
WasmEdge_Plugin_GetDescriptor(void) {
193+
return &Desc;
194+
}
189195
```
190196
191197
These descriptions define the name, description, version, and creation function of the plug-in and the name and description of the module it contains.

0 commit comments

Comments
 (0)