/****************************************************************************
*
* (C) 1999 by BECK IPC GmbH
*
*  BECK IPC GmbH
*  Garbenheimerstr. 38
*  D-35578 Wetzlar
*
*  Phone : (49)-6441-905-240
*  Fax   : (49)-6441-905-245
*
* ---------------------------------------------------------------------------
* Module      : cgiapi.h
* Function    : cgi api prototypes

* Author        : Bartat
* Date          : 27.01.00
* Version       : V1.00
* ---------------------------------------------------------------------------
* History       :
*
*  Vx.yy        Author  Changes
*
*  V1.00          mb    Create
*
*****************************************************************************/
#ifndef _CGI_API_H__
#define _CGI_API_H__
/*************************************************************************/
#include "CGI.H"

/*************************************************************************/
// definitions
/*************************************************************************/
#ifdef _MSC_VER /* If Microsoft C Compiler is used, define new FP_SEG and FP_OFF Macro */
	#ifdef FP_SEG
  		#undef FP_SEG
	#endif
	#define FP_SEG(ptr)    ((unsigned int)(((unsigned long)ptr)>>16))

	#ifdef FP_OFF
  		#undef FP_OFF
	#endif
	#define FP_OFF(ptr)    ((unsigned int)(((unsigned long)ptr)&0xFFFF))
#endif



/*************************************************************************/
//install cgi function
/*************************************************************************/
int CGI_Install(CGI_Entry far  * cgiptr);
/*************************************************************************/
//delete cgi function
/*************************************************************************/


int CGI_Delete(char far * PathPtr);


/*************************************************************************/
//Get formitem
/*************************************************************************/
void CGI_GetFormItem(char far * ArgumentBufferPtr,FormItem far * formitem);

/*************************************************************************/
//Get next formitem
/*************************************************************************/

int CGI_GetNextItem(char far * ArgumentBufferPtr, char far * * nextItemString);

/*************************************************************************/
#endif /* _CGI_API_H__*/
/*************************************************************************/
//end cgiapi.h