Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
526 B

  1. /* See LICENSE file for copyright and license details. */
  2. #ifndef SERVER_H
  3. #define SERVER_H
  4. #include <regex.h>
  5. #include <stddef.h>
  6. struct vhost {
  7. char *chost;
  8. char *regex;
  9. char *dir;
  10. char *prefix;
  11. regex_t re;
  12. };
  13. struct map {
  14. char *chost;
  15. char *from;
  16. char *to;
  17. };
  18. struct server {
  19. char *host;
  20. char *port;
  21. char *docindex;
  22. int listdirs;
  23. struct vhost *vhost;
  24. size_t vhost_len;
  25. struct map *map;
  26. size_t map_len;
  27. };
  28. void server_init_thread_pool(int, size_t, size_t, const struct server *);
  29. #endif /* SERVER_H */