joylink_agent_json.h 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __JD_AGENT_JSON_H_
  2. #define __JD_AGENT_JSON_H_
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #ifdef __cplusplus
  7. extern "C"{
  8. #endif /* __cplusplus */
  9. #include "joylink.h"
  10. /**
  11. * brief:
  12. *
  13. * @Param: sdev
  14. * @Param: count
  15. *
  16. * @Returns:
  17. */
  18. char *
  19. joylink_agent_create_cloud_auth_json_req();
  20. /**
  21. * brief:
  22. *
  23. * @Returns:
  24. */
  25. char *
  26. joylink_agent_create_cloud_hb_json_req();
  27. /**
  28. * brief:
  29. *
  30. * @Returns:
  31. */
  32. char *
  33. joylink_agent_create_cloud_snap_json_req();
  34. /**
  35. * brief:
  36. *
  37. * @Param: pMsg
  38. * @Param: out_num
  39. *
  40. * @Returns:
  41. */
  42. JLAddAgentDev_t*
  43. joylink_agent_parse_dev_del(const uint8_t* pMsg, int* out_num);
  44. /**
  45. * brief:
  46. *
  47. * @Param: pMsg
  48. * @Param: out_num
  49. *
  50. * @Returns:
  51. */
  52. JLAddAgentDev_t*
  53. joylink_agent_parse_dev_add(const uint8_t* pMsg, int* out_num);
  54. #ifdef __cplusplus
  55. }
  56. #endif /* __cplusplus */
  57. #endif