wfd_app.h 713 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _WFD_APP_H_
  2. #define _WFD_APP_H_
  3. #include <stdio.h>
  4. //#include <gsl.h>
  5. #define WFD_APP_DEBUG
  6. #define WFD_APP_TRACE
  7. #define WFD_APP_ERROR
  8. #ifdef WFD_APP_DEBUG
  9. #define wfd_app_printf(fmt, arg...) printf("[WFDApp]"fmt,##arg)
  10. #else
  11. #define wfd_app_printf(a,...) do{}while(0)
  12. #endif
  13. #ifdef WFD_APP_TRACE
  14. #define wfd_app_trace(fmt, arg...) printf("[WFDApp][FUNCTION]%s:[LINE]%d\n",__FUNCTION__,__LINE__)
  15. #else
  16. #define wfd_app_trace(a,...) do{}while(0)
  17. #endif
  18. #ifdef WFD_APP_ERROR
  19. #define wfd_app_error(fmt, arg...) printf("[WFDApp][ERROR]"fmt,##arg)
  20. #else
  21. #define wfd_app_error(a,...) do{}while(0)
  22. #endif
  23. #define WFD_RET_SUCCESS 0
  24. #define WFD_RET_FAIL -1
  25. extern SysAppInstDef stWFDAppInst;
  26. #endif