From 8af768cb904133117f2fc4b1ae4f2672d3c6498a Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 15 May 2008 20:01:56 -0500 Subject: [PATCH] Add enabled() predicate to LASH_Client... --- Timeline/LASH_Client.C | 6 ++++++ Timeline/LASH_Client.H | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Timeline/LASH_Client.C b/Timeline/LASH_Client.C index 5681399..014b776 100644 --- a/Timeline/LASH_Client.C +++ b/Timeline/LASH_Client.C @@ -52,6 +52,12 @@ LASH_Client::init ( const char *jack_name, const char *long_name, int *argc, cha return true; } +bool +LASH_Client::enabled ( void ) +{ + return lash_enabled( _client ); +} + /** process any queued events */ void LASH_Client::poll ( void ) diff --git a/Timeline/LASH_Client.H b/Timeline/LASH_Client.H index 9de1af3..b20d096 100644 --- a/Timeline/LASH_Client.H +++ b/Timeline/LASH_Client.H @@ -17,7 +17,6 @@ /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*******************************************************************************/ - /* generic master class for interfacing with LASH... */ #pragma once @@ -39,6 +38,7 @@ public: virtual ~LASH_Client ( ); bool init ( const char *jack_name, const char *full_name, int *argc, char ***argv ); + bool enabled ( void ); void poll ( void ); void project_save ( void );