Jack2 1.9.6

JackChannel.h

00001 /*
00002 Copyright (C) 2004-2008 Grame
00003 
00004 This program is free software; you can redistribute it and/or modify
00005 it under the terms of the GNU Lesser General Public License as published by
00006 the Free Software Foundation; either version 2.1 of the License, or
00007 (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU Lesser General Public License for more details.
00013 
00014 You should have received a copy of the GNU Lesser General Public License
00015 along with this program; if not, write to the Free Software 
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017 
00018 */
00019 
00020 #ifndef __JackChannel__
00021 #define __JackChannel__
00022 
00023 #include "types.h"
00024 
00025 namespace Jack
00026 {
00027 
00028 class JackClientInterface;
00029 class JackClient;
00030 class JackServer;
00031 struct JackEngineControl;
00032 class JackGraphManager;
00033 
00034 namespace detail
00035 {
00036 
00041 class JackClientChannelInterface
00042 {
00043 
00044     public:
00045 
00046         JackClientChannelInterface()
00047         {}
00048         virtual ~JackClientChannelInterface()
00049         {}
00050 
00051         // Open the Server/Client connection
00052         virtual int Open(const char* server_name, const char* name, char* name_res, JackClient* obj, jack_options_t options, jack_status_t* status)
00053         {
00054             return 0;
00055         }
00056 
00057         // Close the Server/Client connection
00058         virtual void Close()
00059         {}
00060 
00061         // Start listening for messages from the server
00062         virtual int Start()
00063         {
00064             return 0;
00065         }
00066 
00067         // Stop listening for messages from the server
00068         virtual void Stop()
00069         {}
00070 
00071         virtual int ServerCheck(const char* server_name)
00072         {
00073             return -1;
00074         }
00075 
00076         virtual void ClientCheck(const char* name, char* name_res, int protocol, int options, int* status, int* result)
00077         {}
00078         virtual void ClientOpen(const char* name, int pid, int* shared_engine, int* shared_client, int* shared_graph, int* result)
00079         {}
00080         virtual void ClientOpen(const char* name, int* ref, JackEngineControl** shared_engine, JackGraphManager** shared_manager, JackClientInterface* client, int* result)
00081         {}
00082         virtual void ClientClose(int refnum, int* result)
00083         {}
00084 
00085         virtual void ClientActivate(int refnum, int is_real_time, int* result)
00086         {}
00087         virtual void ClientDeactivate(int refnum, int* result)
00088         {}
00089 
00090         virtual void PortRegister(int refnum, const char* name, const char* type, unsigned int flags, unsigned int buffer_size, jack_port_id_t* port_index, int* result)
00091         {}
00092         virtual void PortUnRegister(int refnum, jack_port_id_t port_index, int* result)
00093         {}
00094 
00095         virtual void PortConnect(int refnum, const char* src, const char* dst, int* result)
00096         {}
00097         virtual void PortDisconnect(int refnum, const char* src, const char* dst, int* result)
00098         {}
00099         virtual void PortConnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result)
00100         {}
00101         virtual void PortDisconnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result)
00102         {}
00103         virtual void PortRename(int refnum, jack_port_id_t port, const char* name, int* result)
00104         {}
00105 
00106         virtual void SetBufferSize(jack_nframes_t buffer_size, int* result)
00107         {}
00108         virtual void SetFreewheel(int onoff, int* result)
00109         {}
00110 
00111         virtual void ReleaseTimebase(int refnum, int* result)
00112         {}
00113 
00114         virtual void SetTimebaseCallback(int refnum, int conditional, int* result)
00115         {}
00116 
00117         virtual void GetInternalClientName(int refnum, int int_ref, char* name_res, int* result)
00118         {}
00119 
00120         virtual void InternalClientHandle(int refnum, const char* client_name, int* status, int* int_ref, int* result)
00121         {}
00122 
00123         virtual void InternalClientLoad(int refnum, const char* client_name, const char* so_name, const char* objet_data, int options, int* status, int* int_ref, int* result)
00124         {}
00125 
00126         virtual void InternalClientUnload(int refnum, int int_ref, int* status, int* result)
00127         {}
00128         
00129 };
00130 
00131 }
00132 
00133 } // end of namespace
00134 
00135 #endif
00136