]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: peers: use less confusing state/status code names
authorWilly Tarreau <w@1wt.eu>
Sun, 1 Dec 2013 11:47:35 +0000 (12:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:23 +0000 (15:40 +0100)
commite4d927ac1bb54469ff05079d32d5fb7bef7a52b5
treecbbbc46e60854847bb7167700d37fbf74614d5e3
parent4171e9eef020700b001570de018c9194008c55ba
CLEANUP: peers: use less confusing state/status code names

Currently, all states, all status codes and a few constants used in
the peers are all prefixed with "PEER_SESSION_". It's confusing because
there is no way to know which one is a state, a status code or anything
else. Thus, let's rename them this way :

    PEER_SESS_ST_* : states
    PEER_SESS_SC_* : status codes

Additionally the states have been numbered from zero and contigously.
This will allow us not to have to deal with the stream interface
initialization anymore and to ease debugging using enums.
src/peers.c