Module: kamailio
Branch: 5.0
Commit: 5cb020ac9ed53f8520b9070a1945329abad08029
URL:
https://github.com/kamailio/kamailio/commit/5cb020ac9ed53f8520b9070a1945329…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-25T10:20:34+02:00
core: parser - typedef'ed msg_start struct to msg_start_t
(cherry picked from commit a21ea97800c7d7d3b082a9b1d57887e125d83d68)
---
Modified: src/core/parser/parse_fline.h
---
Diff:
https://github.com/kamailio/kamailio/commit/5cb020ac9ed53f8520b9070a1945329…
Patch:
https://github.com/kamailio/kamailio/commit/5cb020ac9ed53f8520b9070a1945329…
---
diff --git a/src/core/parser/parse_fline.h b/src/core/parser/parse_fline.h
index 04f96b63f4..b10c02bc83 100644
--- a/src/core/parser/parse_fline.h
+++ b/src/core/parser/parse_fline.h
@@ -18,8 +18,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -68,31 +68,28 @@
#define REFER_LEN 5
#define PUBLISH_LEN 7
-struct msg_start {
+typedef struct msg_start {
short type; /*!< Type of the message - request/response */
short flags; /*!< First line flags */
int len; /*!< length including delimiter */
union {
struct {
- str method; /*!< Method string */
- str uri; /*!< Request URI */
- str version; /*!< SIP version */
+ str method; /*!< Method string */
+ str uri; /*!< Request URI */
+ str version; /*!< SIP version */
int method_value;
} request;
struct {
- str version; /*!< SIP version */
- str status; /*!< Reply status */
- str reason; /*!< Reply reason phrase */
- unsigned int /*!< statusclass,*/ statuscode;
+ str version; /*!< SIP version */
+ str status; /*!< Reply status */
+ str reason; /*!< Reply reason phrase */
+ unsigned int statuscode; /*!< Reply status code */
} reply;
}u;
-};
-
-
+} msg_start_t;
char* parse_first_line(char* buffer, unsigned int len, struct msg_start * fl);
char* parse_fline(char* buffer, char* end, struct msg_start* fl);
-
#endif /* PARSE_FLINE_H */