Cleanup
[jack2.git] / common / JackExternalClient.h
blob0b89514001a9a6804abca63226fdb13cd5955352
1 /*
2 Copyright (C) 2001 Paul Davis
3 Copyright (C) 2004-2006 Grame
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __JackExternalClient__
22 #define __JackExternalClient__
24 #include "JackClientInterface.h"
26 namespace Jack
29 class JackNotifyChannelInterface;
30 struct JackClientControl;
32 /*!
33 \brief Server side implementation of library clients.
36 class JackExternalClient : public JackClientInterface
39 private:
41 JackNotifyChannelInterface* fChannel; /*! Server/client communication channel */
42 JackClientControl* fClientControl; /*! Client control in shared memory */
44 public:
46 JackExternalClient();
47 virtual ~JackExternalClient();
49 int Open(const char* name, int refnum, int* shared_client);
50 int Close();
52 int ClientNotify(int refnum, const char* name, int notify, int sync, int value);
54 JackClientControl* GetClientControl() const;
58 } // end of namespace
60 #endif