php-src/sapi/cgi/libfcgi/include/fcgiappmisc.h
Shane Caraveo 79bb884eec combine fastcgi capability with regular cgi binary
include fastcgi library for ease of windows builds
NOTE: included fastcgi library is modified for thread safety, but
	fastcgi support in cgi_main.c is only written for single
	threaded serving.  This does not present any issue for using
	fastcgi.
2002-03-10 21:39:28 +00:00

51 lines
977 B
C

/*
* fcgiappmisc.h --
*
* Functions implemented by fcgiapp.h that aren't needed
* by normal applications, but may be useful to special
* applications.
*
*
* Copyright (c) 1996 Open Market, Inc.
*
* See the file "LICENSE.TERMS" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* $Id$
*/
#ifndef _FCGIAPPMISC_H
#define _FCGIAPPMISC_H
#include "fcgiapp.h" /* for FCGX_Stream */
#if defined (c_plusplus) || defined (__cplusplus)
extern "C" {
#endif
#ifdef _WIN32
#ifndef DLLAPI
#ifdef FCGI_STATIC
#define DLLAPI
#else
#define DLLAPI __declspec(dllimport)
#endif
#endif
#else
#define DLLAPI
#endif
DLLAPI FCGX_Stream *CreateWriter(
int socket,
int requestId,
int bufflen,
int streamType);
DLLAPI void FreeStream(FCGX_Stream **stream);
#if defined (__cplusplus) || defined (c_plusplus)
} /* terminate extern "C" { */
#endif
#endif /* _FCGIAPPMISC_H */