00001 /**************************************************************************** 00002 * 00003 * (C) 1999 by BECK IPC GmbH 00004 * 00005 * BECK IPC GmbH 00006 * Garbenheimerstr. 38 00007 * D-35578 Wetzlar 00008 * 00009 * Phone : (49)-6441-905-240 00010 * Fax : (49)-6441-905-245 00011 * 00012 * --------------------------------------------------------------------------- 00013 * Module : cgiapi.h 00014 * Function : cgi api prototypes 00015 00016 * Author : Bartat 00017 * Date : 27.01.00 00018 * --------------------------------------------------------------------------- 00019 00020 $Header: CGIAPI.H, 6, 16.01.2002 12:36:38, Christoph Stoidner$ 00021 00022 $Log: 00023 6 IPC@CHIP 1.5 16.01.2002 12:36:38 Christoph Stoidner add some 00024 missing semikolons 00025 5 IPC@CHIP 1.4 16.01.2002 11:44:58 Christoph Stoidner add starteam 00026 directives 00027 4 IPC@CHIP 1.3 14.01.2002 13:18:15 Christoph Stoidner add new 00028 functions 00029 3 IPC@CHIP 1.2 31.05.2001 16:18:22 Christoph Stoidner 00030 2 IPC@CHIP 1.1 15.02.2001 15:16:51 Christoph Stoidner 00031 1 IPC@CHIP 1.0 14.02.2001 16:09:09 Christoph Stoidner 00032 $ 00033 00034 * History : 00035 * 00036 * Vx.yy Author Changes 00037 * 00038 * mb Create 00039 * 00040 *****************************************************************************/ 00041 #ifndef _CGI_API_H__ 00042 #define _CGI_API_H__ 00043 /*************************************************************************/ 00044 #include "CLIB/CGI.H" 00045 00046 /*************************************************************************/ 00047 // definitions 00048 /*************************************************************************/ 00049 #ifdef _MSC_VER /* If Microsoft C Compiler is used, define new FP_SEG and FP_OFF Macro */ 00050 #ifdef FP_SEG 00051 #undef FP_SEG 00052 #endif 00053 #define FP_SEG(ptr) ((unsigned int)(((unsigned long)ptr)>>16)) 00054 00055 #ifdef FP_OFF 00056 #undef FP_OFF 00057 #endif 00058 #define FP_OFF(ptr) ((unsigned int)(((unsigned long)ptr)&0xFFFF)) 00059 #endif 00060 00061 00062 00063 /*************************************************************************/ 00064 //install cgi function 00065 /*************************************************************************/ 00066 int CGI_Install(CGI_Entry far * cgiptr); 00067 00068 /*************************************************************************/ 00069 //delete cgi function 00070 /*************************************************************************/ 00071 int CGI_Delete(char far * PathPtr); 00072 00073 00074 /*************************************************************************/ 00075 //Get formitem 00076 /*************************************************************************/ 00077 void CGI_GetFormItem(char far * ArgumentBufferPtr,FormItem far * formitem); 00078 00079 /*************************************************************************/ 00080 //Get next formitem 00081 /*************************************************************************/ 00082 int CGI_GetNextItem(char far * ArgumentBufferPtr, char far * * nextItemString); 00083 00084 /*************************************************************************/ 00085 //Get Main Page Name 00086 /*************************************************************************/ 00087 int CGI_SetMainPage(char *mainPageName); 00088 00089 /*************************************************************************/ 00090 //Get Root Dir 00091 /*************************************************************************/ 00092 int CGI_SetRootDir(char *rootDirName); 00093 00094 /*************************************************************************/ 00095 //Get Main Page Name 00096 /*************************************************************************/ 00097 int CGI_GetMainPage(char **mainPageName); 00098 00099 /*************************************************************************/ 00100 //Get Root Dir 00101 /*************************************************************************/ 00102 int CGI_GetRootDir(char **rootDirName); 00103 00104 00105 00106 /*************************************************************************/ 00107 #endif /* _CGI_API_H__*/ 00108 /*************************************************************************/ 00109 //end cgiapi.h