Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1336 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.61
sletz 17 years ago
parent
commit
d6af9627d1
2 changed files with 5 additions and 197 deletions
  1. +4
    -196
      common/JackSocketClientChannel.cpp
  2. +1
    -1
      macosx/Jackdmp.xcodeproj/project.pbxproj

+ 4
- 196
common/JackSocketClientChannel.cpp View File

@@ -118,22 +118,6 @@ void JackSocketClientChannel::ClientNew(const char* name, int* shared_engine, in
JackClientNewRequest req(name);
JackClientNewResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/

*result = res.fResult;
*shared_engine = res.fSharedEngine;
*shared_client = res.fSharedClient;
*shared_graph = res.fSharedGraph;
@@ -144,14 +128,6 @@ void JackSocketClientChannel::ClientClose(int refnum, int* result)
JackClientCloseRequest req(refnum);
JackResult res;
ServerAsyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
} else {
*result = 0;
}
*/
}

void JackSocketClientChannel::ClientActivate(int refnum, int* result)
@@ -159,21 +135,6 @@ void JackSocketClientChannel::ClientActivate(int refnum, int* result)
JackActivateRequest req(refnum);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/

*result = res.fResult;
}

void JackSocketClientChannel::ClientDeactivate(int refnum, int* result)
@@ -181,20 +142,6 @@ void JackSocketClientChannel::ClientDeactivate(int refnum, int* result)
JackDeactivateRequest req(refnum);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::PortRegister(int refnum, const char* name, unsigned int flags, unsigned int buffer_size, jack_port_id_t* port_index, int* result)
@@ -202,21 +149,6 @@ void JackSocketClientChannel::PortRegister(int refnum, const char* name, unsigne
JackPortRegisterRequest req(refnum, name, "audio", flags, buffer_size);
JackPortRegisterResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/

*result = res.fResult;
*port_index = res.fPortIndex;
}

@@ -225,20 +157,6 @@ void JackSocketClientChannel::PortUnRegister(int refnum, jack_port_id_t port_ind
JackPortUnRegisterRequest req(refnum, port_index);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::PortConnect(int refnum, const char* src, const char* dst, int* result)
@@ -246,20 +164,6 @@ void JackSocketClientChannel::PortConnect(int refnum, const char* src, const cha
JackPortConnectNameRequest req(refnum, src, dst);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::PortDisconnect(int refnum, const char* src, const char* dst, int* result)
@@ -267,20 +171,6 @@ void JackSocketClientChannel::PortDisconnect(int refnum, const char* src, const
JackPortDisconnectNameRequest req(refnum, src, dst);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::PortConnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result)
@@ -288,20 +178,6 @@ void JackSocketClientChannel::PortConnect(int refnum, jack_port_id_t src, jack_p
JackPortConnectRequest req(refnum, src, dst);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::PortDisconnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result)
@@ -309,20 +185,6 @@ void JackSocketClientChannel::PortDisconnect(int refnum, jack_port_id_t src, jac
JackPortDisconnectRequest req(refnum, src, dst);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::SetBufferSize(jack_nframes_t buffer_size, int* result)
@@ -330,20 +192,6 @@ void JackSocketClientChannel::SetBufferSize(jack_nframes_t buffer_size, int* res
JackSetBufferSizeRequest req(buffer_size);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::SetFreewheel(int onoff, int* result)
@@ -351,20 +199,6 @@ void JackSocketClientChannel::SetFreewheel(int onoff, int* result)
JackSetFreeWheelRequest req(onoff);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::ReleaseTimebase(int refnum, int* result)
@@ -372,20 +206,6 @@ void JackSocketClientChannel::ReleaseTimebase(int refnum, int* result)
JackReleaseTimebaseRequest req(refnum);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

void JackSocketClientChannel::SetTimebaseCallback(int refnum, int conditional, int* result)
@@ -393,21 +213,6 @@ void JackSocketClientChannel::SetTimebaseCallback(int refnum, int conditional, i
JackSetTimebaseCallbackRequest req(refnum, conditional);
JackResult res;
ServerSyncCall(&req, &res, result);
/*
if (req.Write(&fRequestSocket) < 0) {
jack_error("Could not write request type = %ld", req.fHeader.fType);
*result = -1;
return ;
}

if (res.Read(&fRequestSocket) < 0) {
jack_error("Could not read result type = %ld", req.fHeader.fType);
*result = -1;
return ;
}
*/
*result = res.fResult;
}

bool JackSocketClientChannel::Init()
@@ -421,7 +226,7 @@ bool JackSocketClientChannel::Init()
jack_error("JackSocketClientChannel: cannot establish notication socket");
return false;
} else {
return true;
return true;
}
}

@@ -455,3 +260,6 @@ error:
} // end of namespace






+ 1
- 1
macosx/Jackdmp.xcodeproj/project.pbxproj View File

@@ -447,7 +447,7 @@
4B56881008B5C8620022B32D /* JackFifo.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = JackFifo.h; path = ../common/JackFifo.h; sourceTree = SOURCE_ROOT; };
4B60CE480AAABA31004956AA /* connect.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = connect.c; path = "../example-clients/connect.c"; sourceTree = SOURCE_ROOT; };
4B66A8580934964500A89560 /* JackConstants.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = JackConstants.h; path = ../common/JackConstants.h; sourceTree = SOURCE_ROOT; };
4B699BB1097D421600A18468 /* jackdmp */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = jackdmp; sourceTree = BUILT_PRODUCTS_DIR; };
4B699BB1097D421600A18468 /* jackdmp */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = jackdmp; sourceTree = BUILT_PRODUCTS_DIR; };
4B699C47097D421600A18468 /* Jackmp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Jackmp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4B699CAC097D421600A18468 /* Jackdmp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Jackdmp.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4B699CBB097D421600A18468 /* jack_metro */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = jack_metro; sourceTree = BUILT_PRODUCTS_DIR; };


Loading…
Cancel
Save