cfg framework: cfg_select() and cfg_reset() added
[sip-router] / cfg.lex
diff --git a/cfg.lex b/cfg.lex
index 11822ea..07c7b90 100644 (file)
--- a/cfg.lex
+++ b/cfg.lex
@@ -251,6 +251,9 @@ WHILE                       "while"
 
 INCLUDEFILE     "include_file"
 
 
 INCLUDEFILE     "include_file"
 
+CFG_SELECT     "cfg_select"
+CFG_RESET      "cfg_reset"
+
 /*ACTION LVALUES*/
 URIHOST                        "uri:host"
 URIPORT                        "uri:port"
 /*ACTION LVALUES*/
 URIHOST                        "uri:host"
 URIPORT                        "uri:port"
@@ -635,6 +638,9 @@ SUBST       subst
 
 <INITIAL>{INCLUDEFILE}  { count(); BEGIN(INCLF); }
 
 
 <INITIAL>{INCLUDEFILE}  { count(); BEGIN(INCLF); }
 
+<INITIAL>{CFG_SELECT}  { count(); yylval.strval=yytext; return CFG_SELECT; }
+<INITIAL>{CFG_RESET}   { count(); yylval.strval=yytext; return CFG_RESET; }
+
 <INITIAL>{URIHOST}     { count(); yylval.strval=yytext; return URIHOST; }
 <INITIAL>{URIPORT}     { count(); yylval.strval=yytext; return URIPORT; }
 
 <INITIAL>{URIHOST}     { count(); yylval.strval=yytext; return URIHOST; }
 <INITIAL>{URIPORT}     { count(); yylval.strval=yytext; return URIPORT; }