Module: sip-router Branch: master Commit: 132df8d61eefcc2dbea08ae70db82393803d9488 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=132df8d6...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Thu Aug 30 10:16:04 2012 +0200
core: exported get_valid_proto_name() via headers
---
socket_info.c | 2 +- socket_info.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/socket_info.c b/socket_info.c index 766e554..73dbc03 100644 --- a/socket_info.c +++ b/socket_info.c @@ -331,7 +331,7 @@ static void free_sock_info(struct socket_info* si)
-static char* get_valid_proto_name(unsigned short proto) +char* get_valid_proto_name(unsigned short proto) { switch(proto){ case PROTO_NONE: diff --git a/socket_info.h b/socket_info.h index 2d46d7d..926b317 100644 --- a/socket_info.h +++ b/socket_info.h @@ -105,6 +105,8 @@ struct socket_info** get_sock_info_list(unsigned short proto); int parse_phostport(char* s, char** host, int* hlen, int* port, int* proto);
+char* get_valid_proto_name(unsigned short proto); + /* helper function: * returns next protocol, if the last one is reached return 0 * useful for cycling on the supported protocols