lightduer_ds_log_bind.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * Copyright (2018) Baidu Inc. All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /*
  17. * Auth: Chen Xihao(chenxihao@baidu.com)
  18. * Desc: bind device module related report log
  19. */
  20. #ifndef BAIDU_DUER_LIGHTDUER_DS_LOG_BIND_H
  21. #define BAIDU_DUER_LIGHTDUER_DS_LOG_BIND_H
  22. #include "lightduer_types.h"
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. typedef enum _duer_ds_log_bind_code {
  27. DUER_DS_LOG_BIND_CONFIG_WIFI_AIRKISS = 0x001,
  28. DUER_DS_LOG_BIND_CONFIG_WIFI_SMARTCONFIG = 0x002,
  29. DUER_DS_LOG_BIND_CONFIG_WIFI_SONIC = 0x003,
  30. DUER_DS_LOG_BIND_CONFIG_WIFI_BT = 0x004,
  31. DUER_DS_LOG_BIND_TASK_START = 0x005,
  32. DUER_DS_LOG_BIND_SEND_RESP = 0x006,
  33. DUER_DS_LOG_BIND_TASK_END = 0x007,
  34. DUER_DS_LOG_BIND_NO_MEMORY = 0x301,
  35. DUER_DS_LOG_BIND_INVALID_PARAMS = 0x302,
  36. DUER_DS_LOG_BIND_START_TASK_FAILED = 0x303,
  37. DUER_DS_LOG_BIND_INIT_AES_FAILED = 0x304,
  38. DUER_DS_LOG_BIND_INIT_SOCKET_FAILED = 0x305,
  39. DUER_DS_LOG_BIND_BIND_SOCKET_FAILED = 0x306,
  40. DUER_DS_LOG_BIND_ENCRYPT_FAILED = 0x307,
  41. DUER_DS_LOG_BIND_SOCKET_ERROR = 0x308,
  42. } duer_ds_log_bind_code_t;
  43. /**
  44. * common function to report the log of bind device moudle
  45. */
  46. duer_status_t duer_ds_log_bind(duer_ds_log_bind_code_t log_code);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif // BAIDU_DUER_LIGHTDUER_DS_LOG_BIND_H