OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-433-g5c77a6c

Gerrit Code Review gerrit@openafs.org
Fri, 19 Nov 2010 14:55:00 -0800 (PST)


The following commit has been merged in the master branch:
commit 5c77a6ca2460c3e79125a614037824db35480905
Author: Felix Frank <Felix.Frank@Alumni.TU-Berlin.de>
Date:   Sat Nov 13 00:10:31 2010 +0100

    rxgen: add *TranslateOpcode functions to XDR code
    
    Administrative commands and server binaries can benefit from the
    ability to translate RPC OpCode numbers to proper function names.
    
    For this purpose, rxgen now emits the function
    
    char *PKGTranslateOpCode(int)
    
    where PKG is replaced by the respective package prefix.
    
    The function is generated in the exact same way that ExecuteRequest is.
    This way, the right optimization (array storage vs. generated case
    statement) according to the respective sparseness of OpCodes in the
    different RX packages is maintained.
    
    Change-Id: Ib083597c0841f50518afd2b159b98c0447e13da0
    Reviewed-on: http://gerrit.openafs.org/3305
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/rxgen/rpc_main.c  |    2 +
 src/rxgen/rpc_parse.c |   89 +++++++++++++++++++++++++++++++++++--------------
 2 files changed, 66 insertions(+), 25 deletions(-)

-- 
OpenAFS Master Repository