1/******************************************************************************************** 2 * Author: Noel V Aguilar 3 * Version: 1.4 4 * Filename: cgi-priv.h 5 * 6 * This is the accompanying header file that goes with cgi-lib.c. These function will assist 7 * you in manipulating data that is transferred over the web. I have attempted to write 8 * the code using ANSI standards. This could should be compiled on a standard ANSI compiler 9 * without any problems. I have not included any system specific functions in order to make 10 * it platform independent. 11 * 12 * This private header file contains declarations that are not necessary for the 13 * development of CGI's but are Only necessary for the library. 14 ********************************************************************************************/ 15 16 17/**************************************************/ 18/* used for defining if a function was successful */ 19/**************************************************/ 20#ifndef SUCCESS 21#define SUCCESS 1 22#endif 23 24/******************************************************/ 25/* used for defining if a function was not successful */ 26/******************************************************/ 27#ifndef FAILURE 28#define FAILURE 0 29#endif 30 31 32/***********************************************************/ 33/* this is the structure of our linked list */ 34/**********************************************************/ 35struct cgi_structure 36{ 37 char *key; 38 char *value; 39}; 40 41 42/***********************************************************/ 43/* we can refer to our structure using the CGI_LIST decl.*/ 44/***********************************************************/ 45typedef struct cgi_structure CGI_LIST; 46 47 48/******************************************************/ 49/* Define the words to look for in our REQUEST_METHOD */ 50/******************************************************/ 51#define GET "GET" 52#define POST "POST" 53