17 #ifndef JACKPORTMANAGER_H_ 18 #define JACKPORTMANAGER_H_ 22 #define JACK_PORT_MONITOR_CLIENT_NAME "Jack Port Monitor" 39 void init(
bool monitorPorts);
45 void init(
bool monitorPorts,
bool autoConnectNetClientsIn);
118 virtual int connect(
const string &clientName_,
const string &serverName);
176 if (autoConnectNetClients){
193 virtual void jackPortRenamed(jack_port_id_t port,
const char *oldName,
const char *newName) {
234 JackPortMonitor(
string clientName_,
bool monitorPorts,
bool autoConnectNetClientsIn);
248 JackPortMonitor(
string clientName_,
string serverName,
bool monitorPorts);
256 JackPortMonitor(
string clientName_,
string serverName,
bool monitorPorts,
bool autoConnectNetClients);
270 virtual void print(ostream &os);
300 #endif // JACKPORTMANAGER_H_ virtual void jackPortRenamed(jack_port_id_t port, const char *oldName, const char *newName)
CompareStrings(string cn_)
bool autoConnectNetClients
When true, autoconnect networked client's ports to the system ports.
virtual int connect(string clientName_)
virtual void print(ostream &os)
virtual int connect(string clientName_)
string cn
The string to compare against.
virtual int disconnect(void)
static void jackPortConnectCallback(jack_port_id_t a, jack_port_id_t b, int connect, void *arg)
virtual void breakDownPortsToClients(vector< jack_port_t *> &ports)
virtual void * threadMain(void)
void connectPortRenameCallback(void)
vector< JackBaseWithPortNames * > knownClients
A vector of clients and their ports both ids and names.
virtual ~JackPortMonitor()
Destructor.
static void jackPortRegistrationCallback(jack_port_id_t port, int reg, void *arg)
virtual void reSyncPorts(void)
virtual void reSyncConnections(void)
static void jackPortRenameCallback(jack_port_id_t port, const char *oldName, const char *newName, void *arg)
virtual void jackPortRegistered(jack_port_id_t port, int reg)
bool operator()(JackBaseWithPortNames *cl)
virtual void jackPortConnected(jack_port_id_t a, jack_port_id_t b, int connect)
virtual void autoConnectNetClientsPorts(void)
void connectPortRegistrationCallback(void)
void connectPortMonitoringCallbacks(void)
void connectPortConnectCallback(void)