jerry_message.h 491 B

123456789101112131415161718192021222324
  1. #ifndef JERRY_MESSAGE_H__
  2. #define JERRY_MESSAGE_H__
  3. #include <rtthread.h>
  4. #include <jerry_util.h>
  5. #include <jerry_callbacks.h>
  6. #include <jerry_event.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef void(*js_message_send_func)(const char *name, rt_uint8_t *data, rt_uint32_t size);
  11. void js_message_send_func_init(js_message_send_func func);
  12. rt_bool_t js_message_send(const char *name, rt_uint8_t *data, rt_uint32_t size);
  13. int js_message_init(void);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif