From b033b9068bc99c16025f7530dd3b282ec54d564b Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 10 Feb 2013 19:24:24 +0100 Subject: generators: Process image blocks through local block parsers This change allows using local defines related to each item in the album or index page. --- src/block-parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/block-parser.h') diff --git a/src/block-parser.h b/src/block-parser.h index edf6dd2..f66aa08 100644 --- a/src/block-parser.h +++ b/src/block-parser.h @@ -78,7 +78,7 @@ gboolean block_parser_has_unused_data (BlockParser *parser, const gchar *key); void block_parser_set_as_used (BlockParser *parser, const gchar *key); /* - * block_parser_read_and_parse: reads input from the file and returns parsed line + * block_parser_process: parse input data * - if there's a multiline block, string before the opening placeholder and * string after closing placeholder are returned on one line, * separated by "replace_key" placeholder as specified in registered blocks @@ -87,7 +87,7 @@ void block_parser_set_as_used (BlockParser *parser, const gchar *key); * - returns newly allocated string, caller is responsible for freeing * */ -gchar * block_parser_read_and_parse (BlockParser *parser, FILE *stream); +gchar * block_parser_process (BlockParser *parser, const gchar *buffer); G_END_DECLS -- cgit v1.2.3