jerry_wlan.h 781 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef JERRY_WLAN_H__
  2. #define JERRY_WLAN_H__
  3. #include <rtthread.h>
  4. #ifdef RT_USING_WIFI
  5. #include <unistd.h>
  6. #include <netdb.h>
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include <stdlib.h>
  10. #include <jerry_util.h>
  11. #include <jerry_event.h>
  12. #include <jerry_callbacks.h>
  13. #include <jerry_buffer.h>
  14. #include <wlan_mgnt.h>
  15. struct wifi_ssid
  16. {
  17. char *ssid;
  18. int index;
  19. };
  20. struct wifi_info
  21. {
  22. jerry_value_t this_value;
  23. struct js_callback *event_callback;
  24. struct rt_wlan_scan_result wifi_list;
  25. struct wifi_ssid *gb_ssid;
  26. char *ssid;
  27. char *password;
  28. char *bssid;
  29. };
  30. struct event_callback_info
  31. {
  32. char *event_name;
  33. jerry_value_t js_return;
  34. jerry_value_t js_target;
  35. };
  36. struct close_callback_info
  37. {
  38. jerry_value_t js_target;
  39. };
  40. #endif
  41. #endif