web_server: Build as module.
[metze/samba/wip.git] / source4 / web_server / web_server.h
index 3b02feaf7d4a7a88a809469a6a40aa690f072ee9..aa4d83c17b5c972f6dc347f7be47e7a72bcf2724 100644 (file)
@@ -17,6 +17,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#ifndef __WEB_SERVER_H__
+#define __WEB_SERVER_H__
+
 #include "smbd/process_model.h"
 
 struct websrv_context;
@@ -60,6 +63,10 @@ struct websrv_context {
        struct session_data *session;
 };
 
+bool wsgi_initialize(struct web_server_data *wdata);
+void http_error(struct websrv_context *web, const char *status, const char *info);
+void websrv_output_headers(struct websrv_context *web, const char *status, struct http_header *headers);
+void websrv_output(struct websrv_context *web, void *data, size_t length);
+NTSTATUS http_parse_header(struct websrv_context *web, const char *line);
 
-#include "web_server/proto.h"
-
+#endif /* __WEB_SERVER_H__ */