diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-05-10 21:59:46 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-05-10 21:59:46 -0700 |
commit | 3231fd0fdd64bc6355bce921a988713524726f23 (patch) | |
tree | 326d6c6d334d14005db80c448fca485f641ed516 /src/upb_msg.h | |
parent | ea2a80840e08887e6e5ea59bce1f56a3c69bd38c (diff) |
Vastly improved/simplified the upb_handlers API.
Diffstat (limited to 'src/upb_msg.h')
-rw-r--r-- | src/upb_msg.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/upb_msg.h b/src/upb_msg.h index 68ba13a..33f5d1c 100644 --- a/src/upb_msg.h +++ b/src/upb_msg.h @@ -277,11 +277,7 @@ INLINE void upb_msg_clear(upb_msg *msg, upb_msgdef *md) { // Registers handlers for populating a msg for the given upb_msgdef. // The upb_msg itself must be passed as the param to the src. -void upb_msg_reghandlers(upb_handlers *h, upb_msgdef *md); - -// Registers handlers that are suitable for populating a msg of *any* -// upb_msgdef ("dynamic" handlers). May be slower than upb_msg_reghandlers(). -void upb_msg_regdhandlers(upb_handlers *h); +upb_mhandlers *upb_msg_reghandlers(upb_handlers *h, upb_msgdef *md); void upb_msg_runhandlers(upb_msg *msg, upb_msgdef *md, upb_handlers *h, void *closure, upb_status *status); |