cfw_tools.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _CFW_TOOLS_H_
  13. #define _CFW_TOOLS_H_
  14. #include <stdint.h>
  15. #include <stdbool.h>
  16. #include <stddef.h>
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /******************************************************************************************
  21. Function : cfwCheckPhoneNumber
  22. Description : check number is valid or not
  23. Called By : by SMS module
  24. Data Accessed :
  25. Data Updated :
  26. Input : const char *s, size_t size, bool *bIsInternational
  27. Output :
  28. Return : bool
  29. Others :
  30. *******************************************************************************************/
  31. bool cfwCheckPhoneNumber(const char *s, size_t size, bool *bIsInternational);
  32. uint16_t cfwSmsDMaxRecCount();
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif