summaryrefslogtreecommitdiff
path: root/upb/descriptor.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-08-31 20:03:59 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-08-31 20:03:59 -0700
commit4a8b9be46c9485a35383b52d400ba086d3f40ace (patch)
treec04b977e5db364a1c4dc53bca78ab2b1f860c5c7 /upb/descriptor.h
parentd1d126acf453608fd797ceaec73d73fa25517166 (diff)
Header cleanup, clarify/correct comments for interfaces.
Diffstat (limited to 'upb/descriptor.h')
-rw-r--r--upb/descriptor.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/upb/descriptor.h b/upb/descriptor.h
index 2c279a5..21099b3 100644
--- a/upb/descriptor.h
+++ b/upb/descriptor.h
@@ -21,8 +21,6 @@ extern "C" {
/* upb_descreader ************************************************************/
-// upb_descreader reads a descriptor and puts defs in a upb_symtabtxn.
-
// We keep a stack of all the messages scopes we are currently in, as well as
// the top-level file scope. This is necessary to correctly qualify the
// definitions that are contained inside. "name" tracks the name of the
@@ -50,13 +48,11 @@ typedef struct {
upb_fielddef *f;
} upb_descreader;
-// Creates a new descriptor builder that will add defs to the given txn.
void upb_descreader_init(upb_descreader *r);
void upb_descreader_uninit(upb_descreader *r);
-// Registers handlers that will load descriptor data into a symtabtxn.
-// Pass the descreader as the closure. The messages will have
-// upb_msgdef_layout() called on them before adding to the txn.
+// Registers handlers that will build the defs. Pass the descreader as the
+// closure.
upb_mhandlers *upb_descreader_reghandlers(upb_handlers *h);
// Gets the array of defs that have been parsed and removes them from the
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback