--- a/list.h +++ b/list.h @@ -19,3 +19,5 @@ int compare(struct list_item* item1, struct list_item* item2); int insert(struct list* lst, unsigned long content); + +int in_list(struct list* lst, unsigned long content); --- a/nbtscan.c +++ b/nbtscan.c @@ -5,6 +5,8 @@ #include #include #include +#include +#include #if HAVE_STDINT_H #include #endif --- a/statusq.h +++ b/statusq.h @@ -103,4 +103,10 @@ char* service_name; } nb_service_t ; +char* getnbservicename(my_uint8_t service, int unique, char* name); + +struct nb_host_info* parse_response(char* buff, int buffsize); + +int send_query(int sock, struct in_addr dest_addr, my_uint32_t rtt_base); + #endif /* STATUSQ_H */ --- a/statusq.c +++ b/statusq.c @@ -29,6 +29,7 @@ #include #include "statusq.h" #include +#include #include #include #include "errors.h"