Module: sip-router
Branch: master
Commit: 98301c7e11d4bef786abbd3329287144df02184f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=98301c7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Aug 19 09:48:42 2012 +0200
core: typedef'ed enum request_method to request_method_t
---
parser/msg_parser.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parser/msg_parser.h b/parser/msg_parser.h
index 50b0daa..1783ee8 100644
--- a/parser/msg_parser.h
+++ b/parser/msg_parser.h
@@ -82,7 +82,7 @@
#define SIP_MSG_START(m) ((m)->first_line.u.request.method.s)
/*! \brief number methods as power of two to allow bitmap matching */
-enum request_method {
+typedef enum request_method {
METHOD_UNDEF=0, /*!< 0 - --- */
METHOD_INVITE=1, /*!< 1 - 2^0 */
METHOD_CANCEL=2, /*!< 2 - 2^1 */
@@ -99,7 +99,7 @@ enum request_method {
METHOD_REFER=4096, /*!< 4096 - 2^12 */
METHOD_PUBLISH=8192, /*!< 8192 - 2^13 */
METHOD_OTHER=16384 /*!< 16384 - 2^14 */
-};
+} request_method_t;
#define FL_FORCE_RPORT (1 << 0) /*!< force rport */
#define FL_FORCE_ACTIVE (1 << 1) /*!< force active SDP */