Add "brief" option to rxgen
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 14 Feb 2010 10:01:14 +0000 (10:01 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 2 Jan 2011 05:19:51 +0000 (21:19 -0800)
commit13ae3de3f6ce5de2395823ee5f862a863caf2e51
tree5368a823c87927cd7708baacde635b6109a79afe
parentb114faf52f3af0debadc1f045be6212084a70305
Add "brief" option to rxgen

Add a new -b option to rxgen that turns on "brief" output. This makes a
number of changes to the data definitions produced by rxgen so they can
be more easily used by the calling code.

The changes are:
   *) Use the new struct rx_opaque structure for all opaque data
      definitions, rather than defining each as a unique structure.
      This permits moving opaque data between rxgen structures to be
      performed by simple assignment.
   *) Use anonymous structures for internal definitions. Currently
      rxgen also uses the field name as the structure name, which
      prevents the use of a field name more than once within a
      source file.
   *) Don't embed the structure name within the names of the elements
      within the structure. This significantly reduces the length of
      assignment code, and makes for more readable callers.

Change-Id: I8cad7e6051f12238a77cf006b0854fb38b54f61a
Reviewed-on: http://gerrit.openafs.org/2585
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/rxgen/rpc_cout.c
src/rxgen/rpc_hout.c
src/rxgen/rpc_main.c
src/rxgen/rpc_parse.c
src/rxgen/rpc_util.h