xref: /wasmtime-44.0.1/examples/wasip2-plugins/c-plugin/add.c (revision bbd12e92)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "plugin.h"
2 
3 void exports_plugin_get_plugin_name(plugin_string_t *ret) {
4   plugin_string_set(ret, "add");
5 }
6 
7 int32_t exports_plugin_evaluate(int32_t x, int32_t y) { return x + y; }
8 

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026