Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Mahfuza <[email protected]>
  • Loading branch information
mhmohona committed Sep 12, 2023
1 parent cee5ffe commit f84473d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions docs/embed/use-case/plugin/c_sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ for (uint32_t I = 0; I < ModuleLen; I++) {
/* Will print the available host module names in the plug-in. */
printf("%s\n", Names[I].Buf);
}
/*
* Will print here for the WASI-Crypto plug-in here:
/* Will print here for the WASI-Crypto plug-in here:
* wasi_ephemeral_crypto_asymmetric_common
* wasi_ephemeral_crypto_common
* wasi_ephemeral_crypto_kx
Expand Down Expand Up @@ -119,8 +118,7 @@ WasmEdge_ConfigureAddHostRegistration(ConfCxt,
WasmEdge_HostRegistration_Wasi);
WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL);
WasmEdge_ConfigureDelete(ConfCxt);
/*
* The following API can retrieve the registered modules in the VM context,
/* The following API can retrieve the registered modules in the VM context,
* includes the built-in WASI and the plug-ins.
*/
/*
Expand All @@ -134,8 +132,7 @@ const WasmEdge_ModuleInstanceContext *WasiModule =
WasmEdge_StringDelete(WasiName);
WasmEdge_String WasiNNName =
WasmEdge_StringCreateByCString("wasi_ephemeral_nn");
/*
* The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not
/* The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not
* installed, because the VM context will mock and register the host
* modules.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ for (uint32_t I = 0; I < ModuleLen; I++) {
/* Will print the available host module names in the plug-in. */
printf("%s\n", Names[I].Buf);
}
/*
* Will print here for the WASI-Crypto plug-in here:
/* Will print here for the WASI-Crypto plug-in here:
* wasi_ephemeral_crypto_asymmetric_common
* wasi_ephemeral_crypto_common
* wasi_ephemeral_crypto_kx
Expand Down Expand Up @@ -119,8 +118,7 @@ WasmEdge_ConfigureAddHostRegistration(ConfCxt,
WasmEdge_HostRegistration_Wasi);
WasmEdge_VMContext *VMCxt = WasmEdge_VMCreate(ConfCxt, NULL);
WasmEdge_ConfigureDelete(ConfCxt);
/*
* The following API can retrieve the registered modules in the VM context,
/* The following API can retrieve the registered modules in the VM context,
* includes the built-in WASI and the plug-ins.
*/
/*
Expand All @@ -134,8 +132,7 @@ const WasmEdge_ModuleInstanceContext *WasiModule =
WasmEdge_StringDelete(WasiName);
WasmEdge_String WasiNNName =
WasmEdge_StringCreateByCString("wasi_ephemeral_nn");
/*
* The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not
/* The `WasiNNModule` will not be `NULL` even if the wasi_nn plug-in is not
* installed, because the VM context will mock and register the host
* modules.
*/
Expand Down

0 comments on commit f84473d

Please sign in to comment.