You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by mx...@apache.org on 2015/08/23 23:10:06 UTC
svn commit: r1697259 - /tcl/rivet/trunk/src/mod_rivet/rivet_types.h
Author: mxmanghi
Date: Sun Aug 23 21:10:06 2015
New Revision: 1697259
URL: http://svn.apache.org/r1697259
Log:
add new file collecting data types in mod_rivet
Added:
tcl/rivet/trunk/src/mod_rivet/rivet_types.h
Added: tcl/rivet/trunk/src/mod_rivet/rivet_types.h
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/mod_rivet/rivet_types.h?rev=1697259&view=auto
==============================================================================
--- tcl/rivet/trunk/src/mod_rivet/rivet_types.h (added)
+++ tcl/rivet/trunk/src/mod_rivet/rivet_types.h Sun Aug 23 21:10:06 2015
@@ -0,0 +1,47 @@
+#ifndef _RIVET_TYPES_H_
+#define _RIVET_TYPES_H_
+
+#include <tcl.h>
+
+typedef struct _ApacheRequest ApacheRequest;
+typedef struct _ApacheUpload ApacheUpload;
+
+typedef struct _ApacheUpload {
+ ApacheUpload* next;
+ char* filename;
+ char* name;
+ char* tempname;
+ apr_table_t* info;
+ apr_file_t* fp;
+ long size;
+ ApacheRequest* req;
+} ApacheUpload;
+
+typedef struct _ApacheRequest {
+ apr_table_t* parms;
+ ApacheUpload* upload;
+ int status;
+ int parsed;
+ int post_max;
+ int disable_uploads;
+ int (*upload_hook)(void *ptr, char *buf, int len, ApacheUpload *upload);
+ void* hook_data;
+ const char* temp_dir;
+ char* raw_post; /* Raw post data. */
+ request_rec* r;
+ int nargs;
+} ApacheRequest;
+
+typedef struct TclWebRequest {
+ Tcl_Interp* interp;
+ request_rec* req;
+ ApacheRequest* apachereq;
+ ApacheUpload* upload;
+ int headers_printed; /* has the header been printed yet? */
+ int headers_set; /* has the header been set yet? */
+ int content_sent;
+ int environment_set; /* have we setup the environment variables? */
+ char* charset;
+} TclWebRequest;
+
+#endif
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org