From 64406aea7429d7c2ab5ac7dc837b527e38250601 Mon Sep 17 00:00:00 2001 From: hydai Date: Wed, 11 Jun 2025 02:53:36 +0800 Subject: [PATCH] docs: add missing part for the c plugin Replace #216. Signed-off-by: hydai --- docs/contribute/plugin/develop_plugin_c.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/contribute/plugin/develop_plugin_c.md b/docs/contribute/plugin/develop_plugin_c.md index 7d20b9e2..d87cd944 100644 --- a/docs/contribute/plugin/develop_plugin_c.md +++ b/docs/contribute/plugin/develop_plugin_c.md @@ -186,6 +186,12 @@ WasmEdge_Result HostFuncSub(void *Data, /* Pointer to the plug-in option description array (Work in progress). */ .ProgramOptions = NULL, }}; + + /* Ensure the Plugin Descriptor is exported */ + WASMEDGE_CAPI_PLUGIN_EXPORT const WasmEdge_PluginDescriptor * + WasmEdge_Plugin_GetDescriptor(void) { + return &Desc; + } ``` These descriptions define the name, description, version, and creation function of the plug-in and the name and description of the module it contains.