Rename `PortSetDeviceName` to `PortSetDeviceMetadata`

This commit is contained in:
falkTX 2019-09-11 19:13:56 +01:00
parent c2ec4b37d4
commit bb416c7801
6 changed files with 12 additions and 12 deletions

View File

@ -1074,7 +1074,7 @@ int JackEngine::PortRename(int refnum, jack_port_id_t port, const char* name)
return 0;
}
int JackEngine::PortSetDeviceName(jack_port_id_t port, const char* pretty_name)
int JackEngine::PortSetDeviceMetadata(jack_port_id_t port, const char* pretty_name)
{
static const char* type = "text/plain";
jack_uuid_t uuid = jack_port_uuid_generate(port);

View File

@ -138,7 +138,7 @@ class SERVER_EXPORT JackEngine : public JackLockAble
int PortRename(int refnum, jack_port_id_t port, const char* name);
int PortSetDeviceName(jack_port_id_t port, const char* pretty_name);
int PortSetDeviceMetadata(jack_port_id_t port, const char* pretty_name);
int ComputeTotalLatencies();

View File

@ -246,11 +246,11 @@ class SERVER_EXPORT JackLockedEngine
CATCH_EXCEPTION_RETURN
}
int PortSetDeviceName(int refnum, jack_port_id_t port, const char* pretty_name)
int PortSetDeviceMetadata(int refnum, jack_port_id_t port, const char* pretty_name)
{
TRY_CALL
JackLock lock(&fEngine);
return (fEngine.CheckClient(refnum)) ? fEngine.PortSetDeviceName(port, pretty_name) : -1;
return (fEngine.CheckClient(refnum)) ? fEngine.PortSetDeviceMetadata(port, pretty_name) : -1;
CATCH_EXCEPTION_RETURN
}

View File

@ -80,7 +80,7 @@ JackALSARawMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(alias);
port->SetLatencyRange(JackCaptureLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
input_port->GetDeviceName());
fCapturePortList[i] = index;
@ -108,7 +108,7 @@ JackALSARawMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(alias);
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
output_port->GetDeviceName());
fPlaybackPortList[i] = index;

View File

@ -372,7 +372,7 @@ JackCoreMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(port_obj->GetAlias());
port->SetLatencyRange(JackCaptureLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
port_obj->GetDeviceName());
fCapturePortList[i] = index;
}
@ -392,7 +392,7 @@ JackCoreMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(port_obj->GetAlias());
port->SetLatencyRange(JackCaptureLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
port_obj->GetDeviceName());
fCapturePortList[num_physical_inputs + i] = index;
}
@ -419,7 +419,7 @@ JackCoreMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(port_obj->GetAlias());
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
port_obj->GetDeviceName());
fPlaybackPortList[i] = index;
}
@ -440,7 +440,7 @@ JackCoreMidiDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(port_obj->GetAlias());
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
port_obj->GetDeviceName());
fPlaybackPortList[num_physical_outputs + i] = index;
}

View File

@ -71,7 +71,7 @@ JackWinMMEDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(input_port->GetAlias());
port->SetLatencyRange(JackCaptureLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
input_port->GetDeviceName());
fCapturePortList[i] = index;
}
@ -97,7 +97,7 @@ JackWinMMEDriver::Attach()
port = fGraphManager->GetPort(index);
port->SetAlias(output_port->GetAlias());
port->SetLatencyRange(JackPlaybackLatency, &latency_range);
fEngine->PortSetDeviceName(fClientControl.fRefNum, index,
fEngine->PortSetDeviceMetadata(fClientControl.fRefNum, index,
output_port->GetDeviceName());
fPlaybackPortList[i] = index;
}