From 3231fd0fdd64bc6355bce921a988713524726f23 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 10 May 2011 21:59:46 -0700 Subject: Vastly improved/simplified the upb_handlers API. --- benchmarks/parsestream.upb_table.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'benchmarks/parsestream.upb_table.c') diff --git a/benchmarks/parsestream.upb_table.c b/benchmarks/parsestream.upb_table.c index 6107894..00eb1bb 100644 --- a/benchmarks/parsestream.upb_table.c +++ b/benchmarks/parsestream.upb_table.c @@ -61,9 +61,10 @@ static bool initialize() return false; } - upb_handlers_init(&handlers, def); + upb_handlers_init(&handlers); // Cause all messages to be read, but do nothing when they are. - upb_register_all(&handlers, NULL, NULL, value, startsubmsg, NULL); + upb_handlerset hset = {NULL, NULL, value, startsubmsg, NULL}; + upb_handlers_reghandlerset(&handlers, def, &hset); upb_decoder_init(&decoder, &handlers); upb_stringsrc_init(&stringsrc); return true; -- cgit v1.2.3