From 310f5363afe8ed31b6381ff002991d5c7cfa6d96 Mon Sep 17 00:00:00 2001 From: swhite Date: Tue, 13 Apr 2004 13:42:54 +0000 Subject: Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism. Changed internal names of http_Auth.h http_Cookies.h http_Steer.h http_Content.h so that HTTPD thorn developers will be required to use this interface, rather than incorrectly explicitly including the source header files. * Protected SString against C++ name mangling * Gave exported functions the HTTP_ prefix * Wrote doc/Content.h * Fixed bug that disabled some steering functionality git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/httpSString.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/httpSString.h (limited to 'src/httpSString.h') diff --git a/src/httpSString.h b/src/httpSString.h new file mode 100644 index 0000000..170261d --- /dev/null +++ b/src/httpSString.h @@ -0,0 +1,30 @@ + /*@@ + @header http_SString.h + @date April 7 14:19:23 2004 + @author Steve White + @desc + Routines exported by the Content stuff. + @enddesc + @version $Header$ + @@*/ + +#ifndef __HTTP_SSTRING_H__ +#define __HTTP_SSTRING_H__ 1 + +#include "SString.h" + +#define EMPTYSTRING {'\0'} + +#ifdef __cplusplus +extern "C" +{ +#endif + +int HTTP_SendString(httpRequest *request, const String* message); +SSBOOL HTTP_GetHeaderValueString(const httpRequest *request, + const String *header, String *value); +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3