X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Ffcgiapp.h;h=7d7ec8636657a06d7afc253ab172d4d862faa34f;hb=469fc3d79fe0851ab6dce19f80440807238be78a;hp=6c1bfd0fe0f481de8d8712abad14872bb92df595;hpb=6c50b8b42e811b410ef7e73a290b554c6feae5a7;p=catagits%2Ffcgi2.git diff --git a/include/fcgiapp.h b/include/fcgiapp.h index 6c1bfd0..7d7ec86 100644 --- a/include/fcgiapp.h +++ b/include/fcgiapp.h @@ -9,7 +9,7 @@ * 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.9 2001/09/06 20:06:03 robs Exp $ + * $Id: fcgiapp.h,v 1.14 2003/06/22 00:16:44 robs Exp $ */ #ifndef _FCGIAPP_H @@ -22,10 +22,6 @@ #include #endif -#if defined (c_plusplus) || defined (__cplusplus) -extern "C" { -#endif - #ifndef DLLAPI #ifdef _WIN32 #define DLLAPI __declspec(dllimport) @@ -34,6 +30,10 @@ extern "C" { #endif #endif +#if defined (c_plusplus) || defined (__cplusplus) +extern "C" { +#endif + /* * Error codes. Assigned to avoid conflict with EOF and errno(2). */ @@ -94,9 +94,9 @@ typedef struct FCGX_Request { 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 */ @@ -104,8 +104,9 @@ typedef struct FCGX_Request { 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; @@ -615,14 +616,14 @@ DLLAPI void FCGX_FreeStream(FCGX_Stream **stream); */ DLLAPI void FCGX_ShutdownPending(void); -/* ---------------------------------------------------------------------- - * - * Prevent the lib from interacting with clients in any way - * (including accepting new requests). Signal handler safe. - * - * ---------------------------------------------------------------------- + +/* + * Attach/Detach an accepted request from its listen socket. + * XXX This is not fully implemented at this time (patch welcome). */ -DLLAPI void FCGX_Shutdown(void); +DLLAPI int FCGX_Attach(FCGX_Request * r); +DLLAPI int FCGX_Detach(FCGX_Request * r); + #if defined (__cplusplus) || defined (c_plusplus) } /* terminate extern "C" { */