浏览代码

core: exported get_valid_proto_name() via headers

Daniel-Constantin Mierla 13 年之前
父节点
当前提交
132df8d61e
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      socket_info.c
  2. 2 0
      socket_info.h

+ 1 - 1
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:

+ 2 - 0
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