83 |
*/ |
*/ |
84 |
struct yyparse_param_t { |
struct yyparse_param_t { |
85 |
LSCPServer* pServer; |
LSCPServer* pServer; |
86 |
|
int hSession; |
87 |
yyscan_t pScanner; |
yyscan_t pScanner; |
88 |
|
bool bVerbose; ///< if true then all commands will immediately sent back (echo) |
89 |
|
|
90 |
|
yyparse_param_t() { |
91 |
|
pServer = NULL; |
92 |
|
hSession = -1; |
93 |
|
pScanner = NULL; |
94 |
|
bVerbose = false; |
95 |
|
} |
96 |
}; |
}; |
97 |
#define YYPARSE_PARAM yyparse_param |
#define YYPARSE_PARAM yyparse_param |
98 |
|
|
107 |
*/ |
*/ |
108 |
extern int GetLSCPCommand( void *buf, int max_size); |
extern int GetLSCPCommand( void *buf, int max_size); |
109 |
#define YY_INPUT(buf,result,max_size) \ |
#define YY_INPUT(buf,result,max_size) \ |
110 |
result = GetLSCPCommand(buf, max_size) |
result = GetLSCPCommand(buf, max_size) |
111 |
|
|
112 |
#endif // __LSCPPARSER_H__ |
#endif // __LSCPPARSER_H__ |