0606f0dcbd35fad5ca90e2c61b17e49640c8d7d9
[sip-router] / parser / case_reco.h
1 /*
2  * $Id$
3  *
4  * Record-Route header field parser macros
5  */
6
7 #ifndef CASE_RECO_H
8 #define CASE_RECO_H
9
10
11 #define OUTE_CASE                            \
12         if (val == _oute_) {                 \
13                 hdr->type = HDR_RECORDROUTE; \
14                 p += 4;                      \
15                 goto dc_end;                 \
16         }                                    \
17
18
19 #define RD_R_CASE                 \
20         switch(val) {             \
21         case _rd_R_:              \
22                 p += 4;           \
23                 val = READ(p);    \
24                 OUTE_CASE;        \
25                                   \
26                 val = unify(val); \
27                 OUTE_CASE;        \
28                 goto other;       \
29         }
30
31
32 #define Reco_CASE         \
33         p += 4;           \
34         val = READ(p);    \
35         RD_R_CASE;        \
36                           \
37         val = unify(val); \
38         RD_R_CASE;        \
39         goto other;
40
41
42 #endif /* CASE_RECO_H */
43