Browse Source

Cleanup JackPortRegisterResult and JackPortUnRegisterRequest structures.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2932 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 15 years ago
parent
commit
888a63ddec
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      common/JackClient.cpp
  2. +4
    -4
      posix/JackRequest.h

+ 1
- 1
common/JackClient.cpp View File

@@ -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) {


+ 4
- 4
posix/JackRequest.h View File

@@ -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)
{}



Loading…
Cancel
Save