Module: kamailio
Branch: master
Commit: a21ea97800c7d7d3b082a9b1d57887e125d83d68
URL:
https://github.com/kamailio/kamailio/commit/a21ea97800c7d7d3b082a9b1d57887e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-25T10:16:43+02:00
core: parser - typedef'ed msg_start struct to msg_start_t
---
Modified: src/core/parser/parse_fline.h
---
Diff:
https://github.com/kamailio/kamailio/commit/a21ea97800c7d7d3b082a9b1d57887e…
Patch:
https://github.com/kamailio/kamailio/commit/a21ea97800c7d7d3b082a9b1d57887e…
---
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 */