[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070] [0071] [0072] [0073] [0074] [0075] [0076] [0077]
/*****************************************************************************/ /* Descr.h */ /*****************************************************************************/ #ifndef DESCR_H_LOADED #define DESCR_H_LOADED 1 #include "wasd.h" #define DESCR_READ_BUFFER_SIZE 2048 /**************/ /* structures */ /**************/ typedef struct DescrTaskStruct DESCR_TASK; struct DescrTaskStruct { BOOL /* getting description from HTML, inside <TITLE></TITLE> tag */ DescriptionInside, /* a <TITLE></TITLE> description has been retrieved from HTML */ DescriptionRetrieved, /* file is "text/html", otherwise "text/plain" */ TextHtmlFile; int /* internal description, number of lines checked from each file */ DescriptionLineCount, /* internal description, number of "<" encountered */ DescriptionClosingTagCount, /* internal description, number of ">" encountered */ DescriptionOpeningTagCount, /* length of locally stored file name */ FileNameLength, /* size of calling function's buffer space */ SizeOfDescriptionBuffer; char /* pointer */ *DescriptionPtr, /* points to calling function's buffer space */ *DescriptionBufferPtr; char /* file name stored local to task */ FileName [ODS_MAX_FILE_NAME_LENGTH+1], /* RAB buffer */ ReadBuffer [DESCR_READ_BUFFER_SIZE]; struct FAB FileFab; struct RAB FileRab; /* pointer to function, used for specifying the next task */ REQUEST_AST NextTaskFunction; }; /***********************/ /* function prototypes */ /***********************/ int Description (REQUEST_STRUCT*, REQUEST_AST, char*, char*, int, int); DescriptionCloseAst (struct FAB*); DescriptionConnect (REQUEST_STRUCT*); DescriptionConnectAst (struct RAB*); DescriptionEscape (REQUEST_STRUCT*); DescriptionEnd (REQUEST_STRUCT*); DescriptionHtml (REQUEST_STRUCT*); DescriptionHtmlRecord (struct RAB*); DescriptionOpen (REQUEST_STRUCT*); DescriptionOpenAst (struct FAB*); DescriptionPlain (REQUEST_STRUCT*); DescriptionPlainRecord (struct RAB*); #endif /* DESCR_H_LOADED */ /*****************************************************************************/