• Gerrit Renker's avatar
    dccp ccid-2: Overhaul CCID naming convention 1/2 · b1c00fe3
    Gerrit Renker authored
    This patch starts a less problematic naming convention for CCID structs.
    
    The old naming convention used 'hc{tx,rx}->ccid?hc{tx,rx}->...' as
    recurring prefixes, which made the code
     * hard to write (not easy to fit into 80 characters);
     * hard to read  (most of the space is occupied by prefixes).
    
    The new naming scheme:
     * struct entries for the TX socket are prefixed by 'tx_';
     * and those for the RX socket are prefixed by 'rx_'.
    
    The identifiers then remain distinguishable when grep-ing through the tree:
     (a) RX/TX sockets are distinguished by the naming scheme,
     (b) individual CCIDs are distinguished by filename (ccid{2,3,4}.{c,h}).
    
    This first patch implements the scheme for CCID-2.
    Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
    Acked-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b1c00fe3
ccid2.c 20.1 KB