Module: sip-router
Branch: master
Commit: d8cd450f97721dd61f0803d7d1ef7a6efd550f45
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d8cd450…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Sun Mar 15 20:52:41 2009 +0100
Kamailio compatiblity: export parse_method function to modules.
The parser function was originally static and we are now exporting
it to other object files so that they can reuse the method parser.
---
parser/parse_methods.c | 2 +-
parser/parse_methods.h | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/parser/parse_methods.c b/parser/parse_methods.c
index 7ecac7c..8e6aabd 100644
--- a/parser/parse_methods.c
+++ b/parser/parse_methods.c
@@ -49,7 +49,7 @@ static int token_char(char _c)
* Parse a method pointed by _next, assign its enum bit to _method, and update
* _next past the method. Returns 1 if parse succeeded and 0 otherwise.
*/
-static int parse_method(str* _next, unsigned int* _method)
+int parse_method(str* _next, unsigned int* _method)
{
if (!_next || !_method) {
LOG(L_ERR, "parse_method: Invalid parameter value\n");
diff --git a/parser/parse_methods.h b/parser/parse_methods.h
index c97aea3..a4d70aa 100644
--- a/parser/parse_methods.h
+++ b/parser/parse_methods.h
@@ -57,5 +57,7 @@ enum method {
*/
int parse_methods(str* _body, unsigned int* _methods);
+int parse_method(str* _next, unsigned int* _method);
+
#endif /* PARSE_METHODS_H */