Commit 888a63dd authored by sletz's avatar sletz
Browse files

Cleanup JackPortRegisterResult and JackPortUnRegisterRequest structures.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2932 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 46f0e857
......@@ -507,7 +507,7 @@ int JackClient::PortRegister(const char* port_name, const char* port_type, unsig
}
int result = -1;
unsigned int port_index = NO_PORT;
jack_port_id_t port_index = NO_PORT;
fChannel->PortRegister(GetClientControl()->fRefNum, name.c_str(), port_type, flags, buffer_size, &port_index, &result);
if (result == 0) {
......
......@@ -244,7 +244,7 @@ struct JackClientOpenResult : public JackResult
CheckRes(trans->Read(&fSharedEngine, sizeof(int)));
CheckRes(trans->Read(&fSharedClient, sizeof(int)));
CheckRes(trans->Read(&fSharedGraph, sizeof(int)));
return 0;
return 0;
}
int Write(JackChannelTransaction* trans)
......@@ -392,7 +392,7 @@ struct JackPortRegisterRequest : public JackRequest
struct JackPortRegisterResult : public JackResult
{
unsigned int fPortIndex;
jack_port_id_t fPortIndex;
JackPortRegisterResult(): JackResult(), fPortIndex(NO_PORT)
{}
......@@ -418,11 +418,11 @@ struct JackPortUnRegisterRequest : public JackRequest
{
int fRefNum;
int fPortIndex;
jack_port_id_t fPortIndex;
JackPortUnRegisterRequest()
{}
JackPortUnRegisterRequest(int refnum, int index)
JackPortUnRegisterRequest(int refnum, jack_port_id_t index)
: JackRequest(JackRequest::kUnRegisterPort), fRefNum(refnum), fPortIndex(index)
{}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment