diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-19 05:14:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-19 05:14:00 +0100 |
commit | cf11e11fc571e761382507a7d7cf574d5c3429bc (patch) | |
tree | 37fa8b0722bd9d0398956eac4e95226db2ae97d3 /libs/ardour/ardour/session.h | |
parent | ab791658936a24d2df69102d07c430b38db8ca32 (diff) |
Remove global Session::playlists variable, use getter method (1/2)
Global variables that can written by anyone are to be avoided.
This also simplifies exposing SessionPlaylists as Lua bindings.
Diffstat (limited to 'libs/ardour/ardour/session.h')
-rw-r--r-- | libs/ardour/ardour/session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index d744cd1d0e..ab7b59c5c6 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1117,7 +1117,7 @@ public: PostTransportAdjustCaptureBuffering = 0x2000 }; - boost::shared_ptr<SessionPlaylists> playlists; + boost::shared_ptr<SessionPlaylists> playlists () const { return _playlists; } void send_mmc_locate (samplepos_t); void queue_full_time_code () { _send_timecode_update = true; } @@ -1227,6 +1227,8 @@ private: static void init_name_id_counter (guint n); static unsigned int name_id_counter (); + boost::shared_ptr<SessionPlaylists> _playlists; + /* stuff used in process() should be close together to maximise cache hits */ |