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. --- tests/tests.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/tests.c b/tests/tests.c index d07d495..dea535c 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -39,8 +39,9 @@ static void test_upb_jit() { ASSERT(def); upb_handlers h; - upb_handlers_init(&h, upb_downcast_msgdef(def)); - upb_register_all(&h, NULL, NULL, &upb_test_onvalue, NULL, NULL); + upb_handlers_init(&h); + upb_handlerset hset = {NULL, NULL, &upb_test_onvalue, NULL, NULL}; + upb_handlers_reghandlerset(&h, upb_downcast_msgdef(def), &hset); upb_decoder d; upb_decoder_init(&d, &h); upb_decoder_uninit(&d); -- cgit v1.2.3