Defines | Typedefs | Enumerations | Functions | Variables

cgic.h File Reference

#include <stdio.h>
Include dependency graph for cgic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

Typedefs

Enumerations

Functions

Variables


Define Documentation

#define cgiReferer   cgiReferrer
#define cgiFormSubmitClicked   cgiFormCheckboxSingle

Referenced by ReadFromHtml().


Typedef Documentation

typedef struct cgiFileStruct* cgiFilePtr

Enumeration Type Documentation

Enumerator:
cgiFormSuccess 
cgiFormTruncated 
cgiFormBadType 
cgiFormEmpty 
cgiFormNotFound 
cgiFormConstrained 
cgiFormNoSuchChoice 
cgiFormMemory 
cgiFormNoFileName 
cgiFormNoContentType 
cgiFormNotAFile 
cgiFormOpenFailed 
cgiFormIO 
cgiFormEOF 
Enumerator:
cgiEnvironmentIO 
cgiEnvironmentMemory 
cgiEnvironmentSuccess 
cgiEnvironmentWrongVersion 

Function Documentation

cgiFormResultType cgiFormString ( const char *  name,
char *  result,
int  max 
)

References cgiFormEntryFindFirst(), and cgiFormEntryString().

Here is the call graph for this function:

cgiFormResultType cgiFormStringNoNewlines ( const char *  name,
char *  result,
int  max 
)

References cgiFormEntryFindFirst(), and cgiFormEntryString().

Here is the call graph for this function:

cgiFormResultType cgiFormStringSpaceNeeded ( const char *  name,
int *  length 
)

References cgiFormEntryFindFirst(), and cgiFormEntryStruct::value.

Here is the call graph for this function:

cgiFormResultType cgiFormStringMultiple ( const char *  name,
char ***  ptrToStringArray 
)
void cgiStringArrayFree ( char **  stringArray  ) 

Referenced by cgiCookies(), cgiFormEntries(), and cgiFormStringMultiple().

Here is the caller graph for this function:

cgiFormResultType cgiFormInteger ( const char *  name,
int *  result,
int  defaultV 
)

References cgiFirstNonspaceChar(), cgiFormEntryFindFirst(), and cgiFormEntryStruct::value.

Here is the call graph for this function:

cgiFormResultType cgiFormIntegerBounded ( const char *  name,
int *  result,
int  min,
int  max,
int  defaultV 
)

References cgiFormInteger(), and cgiFormSuccess.

Here is the call graph for this function:

cgiFormResultType cgiFormDouble ( const char *  name,
double *  result,
double  defaultV 
)

References cgiFirstNonspaceChar(), cgiFormEntryFindFirst(), and cgiFormEntryStruct::value.

Here is the call graph for this function:

cgiFormResultType cgiFormDoubleBounded ( const char *  name,
double *  result,
double  min,
double  max,
double  defaultV 
)

References cgiFormDouble(), and cgiFormSuccess.

Here is the call graph for this function:

cgiFormResultType cgiFormSelectSingle ( const char *  name,
char **  choicesText,
int  choicesTotal,
int *  result,
int  defaultV 
)

References CGICDEBUGEND, CGICDEBUGSTART, cgiFormEntryFindFirst(), and cgiStrEq.

Here is the call graph for this function:

cgiFormResultType cgiFormSelectMultiple ( const char *  name,
char **  choicesText,
int  choicesTotal,
int *  result,
int *  invalid 
)

References cgiFormEntryFindFirst(), cgiFormEntryFindNext(), cgiStrEq, and cgiFormEntryStruct::value.

Here is the call graph for this function:

cgiFormResultType cgiFormCheckboxSingle ( const char *  name  ) 

References cgiFormEntryFindFirst().

Here is the call graph for this function:

cgiFormResultType cgiFormCheckboxMultiple ( const char *  name,
char **  valuesText,
int  valuesTotal,
int *  result,
int *  invalid 
)

References cgiFormSelectMultiple().

Here is the call graph for this function:

cgiFormResultType cgiFormRadio ( const char *  name,
char **  valuesText,
int  valuesTotal,
int *  result,
int  defaultV 
)

References cgiFormSelectSingle().

Here is the call graph for this function:

cgiFormResultType cgiFormFileName ( const char *  name,
char *  result,
int  max 
)
cgiFormResultType cgiFormFileContentType ( const char *  name,
char *  result,
int  max 
)
cgiFormResultType cgiFormFileSize ( const char *  name,
int *  sizeP 
)
cgiFormResultType cgiFormFileOpen ( const char *  name,
cgiFilePtr cfpp 
)
cgiFormResultType cgiFormFileRead ( cgiFilePtr  cfp,
char *  buffer,
int  bufferSize,
int *  gotP 
)

References cgiFileStruct::in.

Referenced by cgiWriteEnvironment().

Here is the caller graph for this function:

cgiFormResultType cgiFormFileClose ( cgiFilePtr  cfp  ) 

References cgiFileStruct::in.

Referenced by cgiWriteEnvironment().

Here is the caller graph for this function:

cgiFormResultType cgiCookieString ( const char *  name,
char *  result,
int  max 
)
cgiFormResultType cgiCookieInteger ( const char *  name,
int *  result,
int  defaultV 
)
cgiFormResultType cgiCookies ( char ***  ptrToStringArray  ) 

References cgiCookie, and cgiStringArrayFree().

Here is the call graph for this function:

void cgiHeaderCookieSetString ( const char *  name,
char *  value,
int  secondsToLive,
char *  path,
char *  domain 
)
void cgiHeaderCookieSetInteger ( const char *  name,
int  value,
int  secondsToLive,
char *  path,
char *  domain 
)
void cgiHeaderLocation ( const char *  redirectUrl  ) 

References cgiOut.

void cgiHeaderStatus ( int  status,
const char *  statusMessage 
)

References cgiOut.

void cgiHeaderContentType ( const char *  mimeType  ) 

References cgiOut.

cgiEnvironmentResultType cgiWriteEnvironment ( char *  filename  ) 
cgiEnvironmentResultType cgiReadEnvironment ( char *  filename  ) 
int cgiMain (  ) 

Referenced by main().

Here is the caller graph for this function:

cgiFormResultType cgiFormEntries ( char ***  ptrToStringArray  ) 

References cgiFormEntryStruct::attr, cgiStringArrayFree(), and cgiFormEntryStruct::next.

Here is the call graph for this function:

cgiFormResultType cgiHtmlEscape ( char *  s  ) 

References cgiHtmlEscapeData().

Here is the call graph for this function:

cgiFormResultType cgiHtmlEscapeData ( char *  data,
int  len 
)

References TRYPUTC.

Referenced by cgiHtmlEscape().

Here is the caller graph for this function:

cgiFormResultType cgiValueEscape ( char *  s  ) 

References cgiValueEscapeData().

Here is the call graph for this function:

cgiFormResultType cgiValueEscapeData ( char *  data,
int  len 
)

References TRYPUTC.

Referenced by cgiValueEscape().

Here is the caller graph for this function:


Variable Documentation

char* cgiPathInfo
char* cgiAuthType
char* cgiAccept
char* cgiUserAgent
char* cgiReferrer
char* cgiCookie
FILE* cgiOut
FILE* cgiIn

Referenced by cgiParsePostFormInput(), main(), and mpRead().