#include <stdio.h>
Go to the source code of this file.
Defines
Typedefs
Enumerations
- enum cgiFormResultType {
cgiFormSuccess,
cgiFormTruncated,
cgiFormBadType,
cgiFormEmpty,
cgiFormNotFound,
cgiFormConstrained,
cgiFormNoSuchChoice,
cgiFormMemory,
cgiFormNoFileName,
cgiFormNoContentType,
cgiFormNotAFile,
cgiFormOpenFailed,
cgiFormIO,
cgiFormEOF
}
- enum cgiEnvironmentResultType { cgiEnvironmentIO,
cgiEnvironmentMemory,
cgiEnvironmentSuccess,
cgiEnvironmentWrongVersion
}
Functions
- cgiFormResultType cgiFormString (const char *name, char *result, int max)
- cgiFormResultType cgiFormStringNoNewlines (const char *name, char *result, int max)
- cgiFormResultType cgiFormStringSpaceNeeded (const char *name, int *length)
- cgiFormResultType cgiFormStringMultiple (const char *name, char ***ptrToStringArray)
- void cgiStringArrayFree (char **stringArray)
- cgiFormResultType cgiFormInteger (const char *name, int *result, int defaultV)
- cgiFormResultType cgiFormIntegerBounded (const char *name, int *result, int min, int max, int defaultV)
- cgiFormResultType cgiFormDouble (const char *name, double *result, double defaultV)
- cgiFormResultType cgiFormDoubleBounded (const char *name, double *result, double min, double max, double defaultV)
- cgiFormResultType cgiFormSelectSingle (const char *name, char **choicesText, int choicesTotal, int *result, int defaultV)
- cgiFormResultType cgiFormSelectMultiple (const char *name, char **choicesText, int choicesTotal, int *result, int *invalid)
- cgiFormResultType cgiFormCheckboxSingle (const char *name)
- cgiFormResultType cgiFormCheckboxMultiple (const char *name, char **valuesText, int valuesTotal, int *result, int *invalid)
- cgiFormResultType cgiFormRadio (const char *name, char **valuesText, int valuesTotal, int *result, int defaultV)
- 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)
- cgiFormResultType cgiFormFileClose (cgiFilePtr cfp)
- cgiFormResultType cgiCookieString (const char *name, char *result, int max)
- cgiFormResultType cgiCookieInteger (const char *name, int *result, int defaultV)
- cgiFormResultType cgiCookies (char ***ptrToStringArray)
- 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)
- void cgiHeaderStatus (int status, const char *statusMessage)
- void cgiHeaderContentType (const char *mimeType)
- cgiEnvironmentResultType cgiWriteEnvironment (char *filename)
- cgiEnvironmentResultType cgiReadEnvironment (char *filename)
- int cgiMain ()
- cgiFormResultType cgiFormEntries (char ***ptrToStringArray)
- cgiFormResultType cgiHtmlEscape (char *s)
- cgiFormResultType cgiHtmlEscapeData (char *data, int len)
- cgiFormResultType cgiValueEscape (char *s)
- cgiFormResultType cgiValueEscapeData (char *data, int len)
Variables
Define Documentation
#define cgiFormSubmitClicked cgiFormCheckboxSingle |
Typedef Documentation
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 cgiFormStringNoNewlines |
( |
const char * |
name, |
|
|
char * |
result, |
|
|
int |
max | |
|
) |
| | |
cgiFormResultType cgiFormStringMultiple |
( |
const char * |
name, |
|
|
char *** |
ptrToStringArray | |
|
) |
| | |
void cgiStringArrayFree |
( |
char ** |
stringArray |
) |
|
cgiFormResultType cgiFormIntegerBounded |
( |
const char * |
name, |
|
|
int * |
result, |
|
|
int |
min, |
|
|
int |
max, |
|
|
int |
defaultV | |
|
) |
| | |
cgiFormResultType cgiFormDouble |
( |
const char * |
name, |
|
|
double * |
result, |
|
|
double |
defaultV | |
|
) |
| | |
cgiFormResultType cgiFormDoubleBounded |
( |
const char * |
name, |
|
|
double * |
result, |
|
|
double |
min, |
|
|
double |
max, |
|
|
double |
defaultV | |
|
) |
| | |
cgiFormResultType cgiFormSelectSingle |
( |
const char * |
name, |
|
|
char ** |
choicesText, |
|
|
int |
choicesTotal, |
|
|
int * |
result, |
|
|
int |
defaultV | |
|
) |
| | |
cgiFormResultType cgiFormSelectMultiple |
( |
const char * |
name, |
|
|
char ** |
choicesText, |
|
|
int |
choicesTotal, |
|
|
int * |
result, |
|
|
int * |
invalid | |
|
) |
| | |
cgiFormResultType cgiFormCheckboxMultiple |
( |
const char * |
name, |
|
|
char ** |
valuesText, |
|
|
int |
valuesTotal, |
|
|
int * |
result, |
|
|
int * |
invalid | |
|
) |
| | |
cgiFormResultType cgiFormRadio |
( |
const char * |
name, |
|
|
char ** |
valuesText, |
|
|
int |
valuesTotal, |
|
|
int * |
result, |
|
|
int |
defaultV | |
|
) |
| | |
cgiFormResultType cgiFormFileContentType |
( |
const char * |
name, |
|
|
char * |
result, |
|
|
int |
max | |
|
) |
| | |
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 |
) |
|
void cgiHeaderStatus |
( |
int |
status, |
|
|
const char * |
statusMessage | |
|
) |
| | |
void cgiHeaderContentType |
( |
const char * |
mimeType |
) |
|
References cgiFormEntryStruct::attr, cgiAccept, cgiAuthType, cgiContentLength, cgiContentType, cgiCookie, cgiFormFileClose(), cgiFormFileOpen(), cgiFormFileRead(), cgiFormSuccess, cgiGatewayInterface, cgiPathInfo, cgiPathTranslated, cgiQueryString, cgiReferrer, cgiRemoteAddr, cgiRemoteHost, cgiRemoteIdent, cgiRemoteUser, cgiRequestMethod, cgiScriptName, cgiServerName, cgiServerPort, cgiServerProtocol, cgiServerSoftware, cgiUserAgent, cgiWriteInt(), cgiWriteString(), cgiFormEntryStruct::contentType, cgiFormEntryStruct::fileName, cgiFormEntryStruct::next, cgiFormEntryStruct::value, and cgiFormEntryStruct::valueLength.
References cgiFormEntryStruct::attr, cgiAccept, cgiAuthType, CGIC_VERSION, cgiContentLength, cgiContentType, cgiCookie, cgiFreeResources(), cgiGatewayInterface, cgiParseSuccess, cgiPathInfo, cgiPathTranslated, cgiQueryString, cgiReadInt(), cgiReadString(), cgiReferrer, cgiRemoteAddr, cgiRemoteHost, cgiRemoteIdent, cgiRemoteUser, cgiRequestMethod, cgiRestored, cgiScriptName, cgiServerName, cgiServerPort, cgiServerProtocol, cgiServerSoftware, cgiUserAgent, cgiFormEntryStruct::contentType, cgiFormEntryStruct::fileName, getTempFileName(), cgiFormEntryStruct::next, cgiFormEntryStruct::tfileName, cgiFormEntryStruct::value, and cgiFormEntryStruct::valueLength.
Variable Documentation