From cbbf90a718ecc6836ef7a77b9040aebb9da348b8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 5 Apr 2003 20:27:03 +0000 Subject: change how rc parsing will work. a=b will be parsed in any [section] and given to a separate parsing callback. no more general config infrastructure needed/ --- openbox/parse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/parse.h') diff --git a/openbox/parse.h b/openbox/parse.h index bd6c03f8..d77b6924 100644 --- a/openbox/parse.h +++ b/openbox/parse.h @@ -13,7 +13,6 @@ typedef enum { TOKEN_LIST, TOKEN_LBRACE = '{', TOKEN_RBRACE = '}', - TOKEN_EQUALS = '=', TOKEN_COMMA = ',', TOKEN_NEWLINE = '\n' } ParseTokenType; @@ -24,6 +23,7 @@ typedef struct { } ParseToken; typedef void (*ParseFunc)(ParseToken *token); +typedef void (*AssignParseFunc)(char *name, ParseToken *value); void parse_startup(); void parse_shutdown(); @@ -33,7 +33,7 @@ void parse_shutdown(); */ void parse_rc(); -void parse_reg_section(char *section, ParseFunc func); +void parse_reg_section(char *section, ParseFunc func, AssignParseFunc afunc); /* Free a parsed token's allocated memory */ -- cgit v1.2.3