Paul Davis
f95aa76f4a
git-svn-id: svn://localhost/ardour2/trunk@2078 d708f5d6-7413-0410-9779-e7cbd77b26cf
35 lines
595 B
C++
35 lines
595 B
C++
#ifndef ardour_powermate_h
|
|
#define ardour_powermate_h
|
|
|
|
#include <sys/time.h>
|
|
#include <pthread.h>
|
|
|
|
#include "control_protocol/control_protocol.h"
|
|
|
|
class PowermateControlProtocol : public ARDOUR::ControlProtocol
|
|
{
|
|
public:
|
|
PowermateControlProtocol (ARDOUR::Session&);
|
|
virtual ~PowermateControlProtocol();
|
|
|
|
int set_active (bool yn);
|
|
static bool probe ();
|
|
|
|
XMLNode& get_state ();
|
|
int set_state (const XMLNode&);
|
|
|
|
private:
|
|
|
|
static void* SerialThreadEntry (void* arg);
|
|
void* SerialThread ();
|
|
|
|
void ProcessEvent(struct input_event *ev);
|
|
|
|
int mPort;
|
|
pthread_t mThread;
|
|
|
|
};
|
|
|
|
|
|
#endif
|