Browse code

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.

Jan Janak authored on 15/03/2009 19:52:41
Showing 2 changed files
... ...
@@ -49,7 +49,7 @@ static int token_char(char _c)
49 49
   * Parse a method pointed by _next, assign its enum bit to _method, and update
50 50
   * _next past the method. Returns 1 if parse succeeded and 0 otherwise.
51 51
   */
52
-static int parse_method(str* _next, unsigned int* _method) 
52
+int parse_method(str* _next, unsigned int* _method) 
53 53
  {
54 54
 	 if (!_next || !_method) {
55 55
 		 LOG(L_ERR, "parse_method: Invalid parameter value\n");
... ...
@@ -57,5 +57,7 @@ enum method {
57 57
  */
58 58
 int parse_methods(str* _body, unsigned int* _methods);
59 59
 
60
+int parse_method(str* _next, unsigned int* _method);
61
+
60 62
 
61 63
 #endif /* PARSE_METHODS_H */