• Stanislav Kinsbursky's avatar
    protobuf: "pretty" engine · 3904b402
    Stanislav Kinsbursky authored
    v2:
    1) parser updated to properly parse strings like this: "11:%x 1:%d"
    
    Protobuf generic show function now accept a string with pretty specificators.
    The string have to look like below (an example):
    
    "0:%d 3:%u"
    
    where numbers with colon specifies field number (the same number as in
    proto-file) and "%[a-zA-Z]" specifies output format.
    If pretty specificator for specified for a field, then it will be used for
    output instead of generic hexidecimal view.
    Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    3904b402
protobuf.c 14.4 KB