Distributed Multihead X
1.16.4
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | _DMXConfigToken |
struct | _DMXConfigString |
struct | _DMXConfigNumber |
struct | _DMXConfigPair |
struct | _DMXConfigComment |
struct | _DMXConfigPartDim |
struct | _DMXConfigFullDim |
struct | _DMXConfigDisplay |
struct | _DMXConfigWall |
struct | _DMXConfigOption |
struct | _DMXConfigParam |
struct | _DMXConfigSub |
struct | _DMXConfigVirtual |
struct | _DMXConfigEntry |
Enumerations | |
enum | DMXConfigType { dmxConfigComment, dmxConfigVirtual, dmxConfigDisplay, dmxConfigWall, dmxConfigOption, dmxConfigParam } |
Variables | |
DMXConfigEntryPtr | dmxConfigEntry |
int | yydebug |
Interface to DMX configuration file parser.
typedef struct _DMXConfigComment DMXConfigComment |
Stores parsed comments not stored with a token.
typedef struct _DMXConfigComment * DMXConfigCommentPtr |
typedef struct _DMXConfigDisplay DMXConfigDisplay |
Stores parsed display information.
typedef struct _DMXConfigDisplay * DMXConfigDisplayPtr |
typedef struct _DMXConfigEntry DMXConfigEntry |
Heads entry storage.
typedef struct _DMXConfigEntry * DMXConfigEntryPtr |
typedef struct _DMXConfigFullDim DMXConfigFullDim |
Stores a pair of geometry specifications.
typedef struct _DMXConfigFullDim * DMXConfigFullDimPtr |
typedef struct _DMXConfigNumber DMXConfigNumber |
Stores parsed numbers.
typedef struct _DMXConfigNumber * DMXConfigNumberPtr |
typedef struct _DMXConfigOption DMXConfigOption |
Stores parsed option information.
typedef struct _DMXConfigOption * DMXConfigOptionPtr |
typedef struct _DMXConfigPair DMXConfigPair |
Stores parsed pairs (e.g., x y)
typedef struct _DMXConfigPair * DMXConfigPairPtr |
typedef struct _DMXConfigParam DMXConfigParam |
Stores parsed param information.
typedef struct _DMXConfigParam * DMXConfigParamPtr |
typedef struct _DMXConfigPartDim DMXConfigPartDim |
Stores a geometry specification.
typedef struct _DMXConfigPartDim * DMXConfigPartDimPtr |
typedef struct _DMXConfigString DMXConfigString |
Stores parsed strings.
typedef struct _DMXConfigString * DMXConfigStringPtr |
typedef struct _DMXConfigSub DMXConfigSub |
Stores options under an entry (subentry).
typedef struct _DMXConfigSub * DMXConfigSubPtr |
typedef struct _DMXConfigToken DMXConfigToken |
Stores tokens not stored in other structures (e.g., keywords and ;)
typedef struct _DMXConfigToken * DMXConfigTokenPtr |
typedef struct _DMXConfigVirtual DMXConfigVirtual |
Stores parsed virtual information.
typedef struct _DMXConfigVirtual * DMXConfigVirtualPtr |
typedef struct _DMXConfigWall DMXConfigWall |
Stores parsed wall information.
typedef struct _DMXConfigWall * DMXConfigWallPtr |
enum DMXConfigType |
DMXConfigEntryPtr dmxConfigAddEntry | ( | DMXConfigEntryPtr | head, |
DMXConfigType | type, | ||
DMXConfigCommentPtr | comment, | ||
DMXConfigVirtualPtr | virtual | ||
) |
References dmxConfigCreateEntry(), and _DMXConfigEntry::next.
Referenced by dmxConfigNCCallback(), and dmxVDLRead().
DMXConfigSubPtr dmxConfigAddSub | ( | DMXConfigSubPtr | head, |
DMXConfigSubPtr | sub | ||
) |
References _DMXConfigSub::next.
Referenced by dmxConfigNDCallback(), and dmxVDLRead().
void* dmxConfigAlloc | ( | unsigned long | bytes | ) |
References dmxConfigLog().
Referenced by dmxConfigCopyString(), dmxConfigCreateComment(), dmxConfigCreateDisplay(), dmxConfigCreateEntry(), dmxConfigCreateFullDim(), dmxConfigCreateNumber(), dmxConfigCreateOption(), dmxConfigCreatePair(), dmxConfigCreateParam(), dmxConfigCreatePartDim(), dmxConfigCreateString(), dmxConfigCreateSub(), dmxConfigCreateToken(), dmxConfigCreateVirtual(), dmxConfigCreateWall(), and dmxConfigPushState().
const char* dmxConfigCopyString | ( | const char * | string, |
int | length | ||
) |
References dmxConfigAlloc().
Referenced by dmxVDLRead().
DMXConfigCommentPtr dmxConfigCreateComment | ( | int | token, |
int | line, | ||
const char * | comment | ||
) |
References _DMXConfigComment::comment, dmxConfigAlloc(), _DMXConfigComment::line, and _DMXConfigComment::token.
Referenced by dmxVDLRead().
DMXConfigDisplayPtr dmxConfigCreateDisplay | ( | DMXConfigTokenPtr | pStart, |
DMXConfigStringPtr | pName, | ||
DMXConfigFullDimPtr | pDim, | ||
DMXConfigPairPtr | pOrigin, | ||
DMXConfigTokenPtr | pEnd | ||
) |
References _DMXConfigPartDim::dim, _DMXConfigDisplay::dim, dmxConfigAlloc(), _DMXConfigDisplay::dname, _DMXConfigDisplay::end, _DMXConfigDisplay::name, _DMXConfigPartDim::offset, _DMXConfigDisplay::origin, _DMXConfigFullDim::root, _DMXConfigDisplay::rootHeight, _DMXConfigDisplay::rootWidth, _DMXConfigDisplay::rootX, _DMXConfigDisplay::rootXOrigin, _DMXConfigDisplay::rootXSign, _DMXConfigDisplay::rootY, _DMXConfigDisplay::rootYOrigin, _DMXConfigDisplay::rootYSign, _DMXConfigFullDim::scrn, _DMXConfigDisplay::scrnHeight, _DMXConfigDisplay::scrnWidth, _DMXConfigDisplay::scrnX, _DMXConfigDisplay::scrnXSign, _DMXConfigDisplay::scrnY, _DMXConfigDisplay::scrnYSign, _DMXConfigDisplay::start, _DMXConfigString::string, _DMXConfigPair::x, _DMXConfigPair::xsign, _DMXConfigPair::y, and _DMXConfigPair::ysign.
Referenced by dmxConfigNDCallback(), and dmxVDLRead().
DMXConfigEntryPtr dmxConfigCreateEntry | ( | DMXConfigType | type, |
DMXConfigCommentPtr | comment, | ||
DMXConfigVirtualPtr | virtual | ||
) |
References _DMXConfigEntry::comment, dmxConfigAlloc(), dmxConfigComment, dmxConfigLog(), dmxConfigVirtual, _DMXConfigEntry::type, and _DMXConfigEntry::virtual.
Referenced by dmxConfigAddEntry(), dmxConfigEntryComment(), and dmxConfigEntryVirtual().
DMXConfigFullDimPtr dmxConfigCreateFullDim | ( | DMXConfigPartDimPtr | pScrn, |
DMXConfigPartDimPtr | pRoot | ||
) |
References dmxConfigAlloc(), _DMXConfigFullDim::root, and _DMXConfigFullDim::scrn.
Referenced by dmxVDLRead().
DMXConfigNumberPtr dmxConfigCreateNumber | ( | int | token, |
int | line, | ||
const char * | comment, | ||
int | number | ||
) |
DMXConfigOptionPtr dmxConfigCreateOption | ( | DMXConfigTokenPtr | pStart, |
DMXConfigStringPtr | pOption, | ||
DMXConfigTokenPtr | pEnd | ||
) |
DMXConfigPairPtr dmxConfigCreatePair | ( | int | token, |
int | line, | ||
const char * | comment, | ||
int | x, | ||
int | y, | ||
int | xsign, | ||
int | ysign | ||
) |
References _DMXConfigPair::comment, dmxConfigAlloc(), _DMXConfigPair::line, _DMXConfigPair::token, _DMXConfigPair::x, _DMXConfigPair::xsign, _DMXConfigPair::y, and _DMXConfigPair::ysign.
Referenced by dmxVDLRead().
DMXConfigParamPtr dmxConfigCreateParam | ( | DMXConfigTokenPtr | pStart, |
DMXConfigTokenPtr | pOpen, | ||
DMXConfigStringPtr | pParam, | ||
DMXConfigTokenPtr | pClose, | ||
DMXConfigTokenPtr | pEnd | ||
) |
DMXConfigPartDimPtr dmxConfigCreatePartDim | ( | DMXConfigPairPtr | pDim, |
DMXConfigPairPtr | pOffset | ||
) |
References _DMXConfigPartDim::dim, dmxConfigAlloc(), and _DMXConfigPartDim::offset.
Referenced by dmxVDLRead().
DMXConfigStringPtr dmxConfigCreateString | ( | int | token, |
int | line, | ||
const char * | comment, | ||
const char * | string | ||
) |
References _DMXConfigString::comment, dmxConfigAlloc(), _DMXConfigString::line, _DMXConfigString::string, and _DMXConfigString::token.
Referenced by dmxVDLRead().
DMXConfigSubPtr dmxConfigCreateSub | ( | DMXConfigType | type, |
DMXConfigCommentPtr | comment, | ||
DMXConfigDisplayPtr | display, | ||
DMXConfigWallPtr | wall, | ||
DMXConfigOptionPtr | option, | ||
DMXConfigParamPtr | param | ||
) |
References _DMXConfigSub::comment, display, _DMXConfigSub::display, dmxConfigAlloc(), dmxConfigComment, dmxConfigDisplay, dmxConfigLog(), dmxConfigOption, dmxConfigParam, dmxConfigWall, _DMXConfigSub::option, _DMXConfigSub::param, _DMXConfigSub::type, and _DMXConfigSub::wall.
Referenced by dmxConfigSubComment(), dmxConfigSubDisplay(), dmxConfigSubOption(), dmxConfigSubParam(), and dmxConfigSubWall().
DMXConfigTokenPtr dmxConfigCreateToken | ( | int | token, |
int | line, | ||
const char * | comment | ||
) |
References _DMXConfigToken::comment, dmxConfigAlloc(), _DMXConfigToken::line, and _DMXConfigToken::token.
DMXConfigVirtualPtr dmxConfigCreateVirtual | ( | DMXConfigTokenPtr | pStart, |
DMXConfigStringPtr | pName, | ||
DMXConfigPairPtr | pDim, | ||
DMXConfigTokenPtr | pOpen, | ||
DMXConfigSubPtr | pSubentry, | ||
DMXConfigTokenPtr | pClose | ||
) |
References _DMXConfigVirtual::close, _DMXConfigVirtual::dim, dmxConfigAlloc(), _DMXConfigVirtual::height, _DMXConfigVirtual::name, _DMXConfigVirtual::open, _DMXConfigVirtual::start, _DMXConfigString::string, _DMXConfigVirtual::subentry, _DMXConfigVirtual::vname, _DMXConfigVirtual::width, _DMXConfigPair::x, and _DMXConfigPair::y.
Referenced by dmxConfigNCCallback(), and dmxVDLRead().
DMXConfigWallPtr dmxConfigCreateWall | ( | DMXConfigTokenPtr | pStart, |
DMXConfigPairPtr | pWallDim, | ||
DMXConfigPairPtr | pDisplayDim, | ||
DMXConfigStringPtr | pNameList, | ||
DMXConfigTokenPtr | pEnd | ||
) |
DMXConfigEntryPtr dmxConfigEntryComment | ( | DMXConfigCommentPtr | comment | ) |
References dmxConfigComment, and dmxConfigCreateEntry().
DMXConfigEntryPtr dmxConfigEntryVirtual | ( | DMXConfigVirtualPtr | virtual | ) |
References dmxConfigCreateEntry(), and dmxConfigVirtual.
void dmxConfigFree | ( | void * | area | ) |
Referenced by dmxConfigFreeComment(), dmxConfigFreeDisplay(), dmxConfigFreeEntry(), dmxConfigFreeFullDim(), dmxConfigFreeNumber(), dmxConfigFreeOption(), dmxConfigFreePair(), dmxConfigFreeParam(), dmxConfigFreePartDim(), dmxConfigFreeString(), dmxConfigFreeSub(), dmxConfigFreeToken(), dmxConfigFreeVirtual(), dmxConfigFreeWall(), and dmxConfigPopState().
void dmxConfigFreeComment | ( | DMXConfigCommentPtr | p | ) |
References _DMXConfigComment::comment, and dmxConfigFree().
Referenced by dmxConfigFreeEntry(), and dmxConfigFreeSub().
void dmxConfigFreeDisplay | ( | DMXConfigDisplayPtr | p | ) |
void dmxConfigFreeEntry | ( | DMXConfigEntryPtr | entry | ) |
void dmxConfigFreeFullDim | ( | DMXConfigFullDimPtr | p | ) |
References dmxConfigFree(), dmxConfigFreePartDim(), _DMXConfigFullDim::root, and _DMXConfigFullDim::scrn.
Referenced by dmxConfigFreeDisplay().
void dmxConfigFreeNumber | ( | DMXConfigNumberPtr | p | ) |
References _DMXConfigNumber::comment, and dmxConfigFree().
void dmxConfigFreeOption | ( | DMXConfigOptionPtr | p | ) |
References dmxConfigFree(), dmxConfigFreeString(), dmxConfigFreeToken(), _DMXConfigOption::end, _DMXConfigOption::option, _DMXConfigOption::start, and _DMXConfigOption::string.
Referenced by dmxConfigFreeSub().
void dmxConfigFreePair | ( | DMXConfigPairPtr | p | ) |
References _DMXConfigPair::comment, and dmxConfigFree().
Referenced by dmxConfigFreePartDim(), dmxConfigFreeVirtual(), and dmxConfigFreeWall().
void dmxConfigFreeParam | ( | DMXConfigParamPtr | p | ) |
void dmxConfigFreePartDim | ( | DMXConfigPartDimPtr | p | ) |
References _DMXConfigPartDim::dim, dmxConfigFree(), dmxConfigFreePair(), and _DMXConfigPartDim::offset.
Referenced by dmxConfigFreeFullDim().
void dmxConfigFreeString | ( | DMXConfigStringPtr | p | ) |
References _DMXConfigString::comment, dmxConfigFree(), _DMXConfigString::next, and _DMXConfigString::string.
Referenced by dmxConfigFreeDisplay(), dmxConfigFreeOption(), dmxConfigFreeParam(), dmxConfigFreeVirtual(), and dmxConfigFreeWall().
void dmxConfigFreeSub | ( | DMXConfigSubPtr | sub | ) |
References _DMXConfigSub::comment, _DMXConfigSub::display, dmxConfigComment, dmxConfigDisplay, dmxConfigFree(), dmxConfigFreeComment(), dmxConfigFreeDisplay(), dmxConfigFreeOption(), dmxConfigFreeParam(), dmxConfigFreeWall(), dmxConfigLog(), dmxConfigOption, dmxConfigParam, dmxConfigWall, _DMXConfigSub::next, _DMXConfigSub::option, _DMXConfigSub::param, _DMXConfigSub::type, and _DMXConfigSub::wall.
Referenced by dmxConfigFreeVirtual().
void dmxConfigFreeToken | ( | DMXConfigTokenPtr | p | ) |
References _DMXConfigToken::comment, and dmxConfigFree().
Referenced by dmxConfigFreeDisplay(), dmxConfigFreeOption(), dmxConfigFreeParam(), dmxConfigFreeVirtual(), and dmxConfigFreeWall().
void dmxConfigFreeVirtual | ( | DMXConfigVirtualPtr | virtual | ) |
References dmxConfigFree(), dmxConfigFreePair(), dmxConfigFreeString(), dmxConfigFreeSub(), and dmxConfigFreeToken().
Referenced by dmxConfigDCCallback(), and dmxConfigFreeEntry().
void dmxConfigFreeWall | ( | DMXConfigWallPtr | p | ) |
void dmxConfigLog | ( | const char * | format, |
... | |||
) |
A general error logging routine that does not depend on the dmxLog functions.
Referenced by dmxConfigAlloc(), dmxConfigCreateEntry(), dmxConfigCreateSub(), dmxConfigFreeEntry(), dmxConfigFreeSub(), dmxConfigPopState(), dmxConfigPrint(), dmxConfigPrintParam(), dmxConfigPrintSub(), dmxConfigPrintTokenFlag(), and dmxConfigRealloc().
const char** dmxConfigLookupParam | ( | DMXConfigParamPtr | p, |
const char * | key, | ||
int * | argc | ||
) |
References _DMXConfigParam::argc, _DMXConfigParam::argv, and _DMXConfigParam::next.
Referenced by dmxConfigCopyFromParam().
void* dmxConfigRealloc | ( | void * | orig, |
unsigned long | orig_bytes, | ||
unsigned long | bytes | ||
) |
References dmxConfigLog().
DMXConfigSubPtr dmxConfigSubComment | ( | DMXConfigCommentPtr | comment | ) |
References dmxConfigComment, and dmxConfigCreateSub().
DMXConfigSubPtr dmxConfigSubDisplay | ( | DMXConfigDisplayPtr | display | ) |
References dmxConfigCreateSub(), and dmxConfigDisplay.
Referenced by dmxConfigNDCallback(), and dmxVDLRead().
DMXConfigSubPtr dmxConfigSubOption | ( | DMXConfigOptionPtr | option | ) |
References dmxConfigCreateSub(), and dmxConfigOption.
DMXConfigSubPtr dmxConfigSubParam | ( | DMXConfigParamPtr | param | ) |
References dmxConfigCreateSub(), and dmxConfigParam.
DMXConfigSubPtr dmxConfigSubWall | ( | DMXConfigWallPtr | wall | ) |
References dmxConfigCreateSub(), and dmxConfigWall.
void yyerror | ( | const char * | message | ) |
int yylex | ( | void | ) |
DMXConfigEntryPtr dmxConfigEntry |
Referenced by main().
int yydebug |
Referenced by dmxConfigReadFile(), and main().