stream_wrap: use getters, not direct field access
authorBen Noordhuis <info@bnoordhuis.nl>
Wed, 7 Aug 2013 15:14:16 +0000 (17:14 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 7 Aug 2013 15:16:47 +0000 (17:16 +0200)
commitda5ad92ab221e45648c871cf488e0699b5708288
tree32f43813ebd505fb510bb96932b81ade0f8c961b
parent4692b725deaf263aac79e8959ce4ca2a2285f3a0
stream_wrap: use getters, not direct field access

Hide member fields behind getters. Make the fields themselves const
in the sense that the pointer is non-assignable - the pointed to object
remains mutable.

Makes reasoning about lifecycle and mutability a little easier.
src/stream_wrap.cc
src/stream_wrap.h
src/tls_wrap.cc