1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef __SERVER_H__ #define __SERVER_H__ struct settings { const char *port; }; struct server { int fd; }; int server_create(struct server *, const struct settings *); void server_destroy(const struct server *); int server_main(const struct server *); #endif