Skip to content

Conversation

@peter-jerry-ye
Copy link

Explanation

Make the code example for developing plugins in C complete. Now one can copy all the code snippets and expect it to work.

Related issue

Closes WasmEdge/WasmEdge#3122

What type of PR is this

/kind documentation

Proposed Changes

Copied the missing part of testplugin.c into the document

Copy link
Collaborator

alabulei1 commented Feb 24, 2024

Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.


Commit 4ee30642d3777492adc54ff3ad6da88131187bfc

Key Changes:

  • Added a new function WasmEdge_Plugin_GetDescriptor to export the plug-in descriptor.

Potential Problems:

  1. The newly added function WasmEdge_Plugin_GetDescriptor does not have any input parameters or return type specified. It's unclear if this aligns with the existing coding standards and conventions, as normally functions have explicit input parameters and return types defined.
  2. There is no description provided for the function WasmEdge_Plugin_GetDescriptor, which may make it difficult for other developers to understand its purpose and proper usage.
  3. The patch does not include any test cases or updates to the existing tests for the changes made in the code. It's important to ensure that new functionality is properly tested to maintain code quality.
  4. It would be beneficial to include comments explaining the purpose of exporting the plug-in descriptor and how it fits into the overall functionality of the plugin. This adds clarity for future developers who may work on this codebase.

@alabulei1
Copy link
Collaborator

Hi @peter-jerry-ye

Thanks for the PR. Could you please fix the DCO issues? Thanks.

hydai added a commit that referenced this pull request Jun 10, 2025
Replace #216.

Signed-off-by: hydai <z54981220@gmail.com>
@hydai
Copy link
Member

hydai commented Jun 10, 2025

Hi @peter-jerry-ye,

Would you like to fix the DCO issues? Please refer to https://wasmedge.org/docs/zh-tw/contribute/overview/#signing-off-on-commits-developer-certificate-of-origin.

If not, I will use #271 to replace this PR.

@peter-jerry-ye
Copy link
Author

Please go ahead. Sorry for hanging the issue for so long.

hydai added a commit that referenced this pull request Jun 11, 2025
Replace #216.

Signed-off-by: hydai <z54981220@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin built from C11 is shown in the plugin list.

3 participants