module_wasm_lib.c 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include "module_wasm_lib.h"
  6. static bool
  7. wasm_lib_module_init(void)
  8. {
  9. return false;
  10. }
  11. static bool
  12. wasm_lib_module_install(request_t *msg)
  13. {
  14. (void)msg;
  15. return false;
  16. }
  17. static bool
  18. wasm_lib_module_uninstall(request_t *msg)
  19. {
  20. (void)msg;
  21. return false;
  22. }
  23. static void
  24. wasm_lib_module_watchdog_kill(module_data *m_data)
  25. {
  26. (void)m_data;
  27. }
  28. static bool
  29. wasm_lib_module_handle_host_url(void *queue_msg)
  30. {
  31. (void)queue_msg;
  32. return false;
  33. }
  34. static module_data *
  35. wasm_lib_module_get_module_data(void *inst)
  36. {
  37. (void)inst;
  38. return NULL;
  39. }
  40. /* clang-format off */
  41. module_interface wasm_lib_module_interface = {
  42. wasm_lib_module_init,
  43. wasm_lib_module_install,
  44. wasm_lib_module_uninstall,
  45. wasm_lib_module_watchdog_kill,
  46. wasm_lib_module_handle_host_url,
  47. wasm_lib_module_get_module_data,
  48. NULL
  49. };
  50. /* clang-format on */