add function prototype declaration on client.c