case_sip.h 886 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*! \file
  2. * \brief Parser :: Handle case for headers
  3. *
  4. * \ingroup parser
  5. */
  6. #ifndef CASE_SIP_H
  7. #define CASE_SIP_H
  8. #define atch_CASE \
  9. switch(LOWER_DWORD(val)) { \
  10. case _atch_: \
  11. DBG("end of SIP-If-Match\n"); \
  12. hdr->type = HDR_SIPIFMATCH_T; \
  13. p += 4; \
  14. goto dc_end; \
  15. }
  16. #define ifm_CASE \
  17. switch(LOWER_DWORD(val)) { \
  18. case _ifm_: \
  19. DBG("middle of SIP-If-Match: yet=0x%04x\n",LOWER_DWORD(val)); \
  20. p += 4; \
  21. val = READ(p); \
  22. atch_CASE; \
  23. goto other; \
  24. }
  25. #define sip_CASE \
  26. DBG("beginning of SIP-If-Match: yet=0x%04x\n",LOWER_DWORD(val)); \
  27. p += 4; \
  28. val = READ(p); \
  29. ifm_CASE; \
  30. goto other;
  31. #endif /* CASE_SIP_H */