| 
							- /*
 - Copyright (C) 2004-2006 Grame  
 - 
 - This program is free software; you can redistribute it and/or modify
 -   it under the terms of the GNU General Public License as published by
 -   the Free Software Foundation; either version 2 of the License, or
 -   (at your option) any later version.
 - 
 -   This program is distributed in the hope that it will be useful,
 -   but WITHOUT ANY WARRANTY; without even the implied warranty of
 -   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 -   GNU General Public License for more details.
 - 
 -   You should have received a copy of the GNU General Public License
 -   along with this program; if not, write to the Free Software
 -   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 - 
 - */
 - 
 - #include "JackMachServerNotifyChannel.h"
 - #include "JackRPCEngineUser.c"
 - #include "JackError.h"
 - 
 - namespace Jack
 - {
 - 
 - int JackMachServerNotifyChannel::Open()
 - {
 -     JackLog("JackMachServerChannel::Open\n");
 - 
 -     if (!fClientPort.ConnectPort(jack_server_entry)) {
 -         jack_error("Cannot connect to server port");
 -         return -1;
 -     } else {
 -         return 0;
 -     }
 - }
 - 
 - void JackMachServerNotifyChannel::Close()
 - {
 -     //fClientPort.DisconnectPort(); pas nŽcessaire car le JackMachServerChannel a dŽja disparu?
 - }
 - 
 - void JackMachServerNotifyChannel::ClientNotify(int refnum, int notify, int value)
 - {
 -     kern_return_t res = rpc_jack_client_rt_notify(fClientPort.GetPort(), refnum, notify, value, 0);
 -     if (res != KERN_SUCCESS) {
 -         jack_error("JackMachServerNotifyChannel::ClientNotify: ref = %ld notify = %ld err = %s", refnum, notify, mach_error_string(res));
 -     }
 - }
 - 
 - } // end of namespace
 - 
 
 
  |