* See the file "LICENSE.TERMS" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * $Id: fcgiapp.h,v 1.11 2001/11/17 03:58:30 robs Exp $
+ * $Id: fcgiapp.h,v 1.14 2003/06/22 00:16:44 robs Exp $
*/
#ifndef _FCGIAPP_H
#include <varargs.h>
#endif
-#ifndef DLLAPI\r
-#ifdef _WIN32\r
-#define DLLAPI __declspec(dllimport)\r
-#else\r
-#define DLLAPI\r
-#endif\r
-#endif\r
-\r
+#ifndef DLLAPI
+#ifdef _WIN32
+#define DLLAPI __declspec(dllimport)
+#else
+#define DLLAPI
+#endif
+#endif
+
#if defined (c_plusplus) || defined (__cplusplus)
extern "C" {
#endif
FCGX_Stream *in;
FCGX_Stream *out;
FCGX_Stream *err;
- char **envp;
+ char **envp;
- /* Don't use anything below here */
+ /* Don't use anything below here */
struct Params *paramsPtr;
int ipcFd; /* < 0 means no connection */
int keepConnection; /* don't close ipcFd at end of request */
int appStatus;
int nWriters; /* number of open writers (0..2) */
- int flags;
- int listen_sock;
+ int flags;
+ int listen_sock;
+ int detached;
} FCGX_Request;
\f
/*
*----------------------------------------------------------------------
*
- * FCGX_Peek --
- *
- * Return the next byte without removing it from the stream.
- *
- * Results:
- * The byte, or EOF if the end of input has been reached.
- *
- *----------------------------------------------------------------------
- */
-DLLAPI int FCGX_Peek(FCGX_Stream * stream);\r
-
-/*
- *----------------------------------------------------------------------
- *
* FCGX_GetChar --
*
* Reads a byte from the input stream and returns it.
*/
DLLAPI void FCGX_ShutdownPending(void);
+
+/*
+ * Attach/Detach an accepted request from its listen socket.
+ * XXX This is not fully implemented at this time (patch welcome).
+ */
+DLLAPI int FCGX_Attach(FCGX_Request * r);
+DLLAPI int FCGX_Detach(FCGX_Request * r);
+
+
#if defined (__cplusplus) || defined (c_plusplus)
} /* terminate extern "C" { */
#endif