cgisimple.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #ifndef CGISIMPLE_H_INCLUDED
  2. #define CGISIMPLE_H_INCLUDED
  3. /*********************************************************************
  4. *
  5. * File : $Source: /cvsroot/ijbswa/current/cgisimple.h,v $
  6. *
  7. * Purpose : Declares functions to intercept request, generate
  8. * html or gif answers, and to compose HTTP responses.
  9. *
  10. * Functions declared include:
  11. *
  12. *
  13. * Copyright : Written by and Copyright (C) 2001-2017 members of the
  14. * Privoxy team. https://www.privoxy.org/
  15. *
  16. * Based on the Internet Junkbuster originally written
  17. * by and Copyright (C) 1997 Anonymous Coders and
  18. * Junkbusters Corporation. http://www.junkbusters.com
  19. *
  20. * This program is free software; you can redistribute it
  21. * and/or modify it under the terms of the GNU General
  22. * Public License as published by the Free Software
  23. * Foundation; either version 2 of the License, or (at
  24. * your option) any later version.
  25. *
  26. * This program is distributed in the hope that it will
  27. * be useful, but WITHOUT ANY WARRANTY; without even the
  28. * implied warranty of MERCHANTABILITY or FITNESS FOR A
  29. * PARTICULAR PURPOSE. See the GNU General Public
  30. * License for more details.
  31. *
  32. * The GNU General Public License should be included with
  33. * this file. If not, you can view it at
  34. * http://www.gnu.org/copyleft/gpl.html
  35. * or write to the Free Software Foundation, Inc., 59
  36. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  37. *
  38. **********************************************************************/
  39. #include "project.h"
  40. /*
  41. * CGI functions
  42. */
  43. extern jb_err cgi_default (struct client_state *csp,
  44. struct http_response *rsp,
  45. const struct map *parameters);
  46. extern jb_err cgi_error_404 (struct client_state *csp,
  47. struct http_response *rsp,
  48. const struct map *parameters);
  49. extern jb_err cgi_robots_txt (struct client_state *csp,
  50. struct http_response *rsp,
  51. const struct map *parameters);
  52. extern jb_err cgi_send_banner (struct client_state *csp,
  53. struct http_response *rsp,
  54. const struct map *parameters);
  55. extern jb_err cgi_show_status (struct client_state *csp,
  56. struct http_response *rsp,
  57. const struct map *parameters);
  58. extern jb_err cgi_show_url_info(struct client_state *csp,
  59. struct http_response *rsp,
  60. const struct map *parameters);
  61. extern jb_err cgi_show_request (struct client_state *csp,
  62. struct http_response *rsp,
  63. const struct map *parameters);
  64. #ifdef FEATURE_CLIENT_TAGS
  65. extern jb_err cgi_show_client_tags(struct client_state *csp,
  66. struct http_response *rsp,
  67. const struct map *parameters);
  68. extern jb_err cgi_toggle_client_tag(struct client_state *csp,
  69. struct http_response *rsp,
  70. const struct map *parameters);
  71. #endif
  72. extern jb_err cgi_transparent_image (struct client_state *csp,
  73. struct http_response *rsp,
  74. const struct map *parameters);
  75. extern jb_err cgi_send_error_favicon (struct client_state *csp,
  76. struct http_response *rsp,
  77. const struct map *parameters);
  78. extern jb_err cgi_send_default_favicon (struct client_state *csp,
  79. struct http_response *rsp,
  80. const struct map *parameters);
  81. extern jb_err cgi_send_stylesheet(struct client_state *csp,
  82. struct http_response *rsp,
  83. const struct map *parameters);
  84. extern jb_err cgi_send_url_info_osd(struct client_state *csp,
  85. struct http_response *rsp,
  86. const struct map *parameters);
  87. extern jb_err cgi_send_user_manual(struct client_state *csp,
  88. struct http_response *rsp,
  89. const struct map *parameters);
  90. #ifdef FEATURE_GRACEFUL_TERMINATION
  91. extern jb_err cgi_die (struct client_state *csp,
  92. struct http_response *rsp,
  93. const struct map *parameters);
  94. #endif
  95. #endif /* ndef CGISIMPLE_H_INCLUDED */
  96. /*
  97. Local Variables:
  98. tab-width: 3
  99. end:
  100. */