Jack2
1.9.8
|
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 #include "JackSession.h" 00025 00026 namespace Jack 00027 { 00028 00029 class JackClientInterface; 00030 class JackClient; 00031 class JackServer; 00032 struct JackEngineControl; 00033 class JackGraphManager; 00034 00035 namespace detail 00036 { 00037 00042 class JackClientChannelInterface 00043 { 00044 00045 public: 00046 00047 JackClientChannelInterface() 00048 {} 00049 virtual ~JackClientChannelInterface() 00050 {} 00051 00052 // Open the Server/Client connection 00053 virtual int Open(const char* server_name, const char* name, int uuid, char* name_res, JackClient* obj, jack_options_t options, jack_status_t* status) 00054 { 00055 return 0; 00056 } 00057 00058 // Close the Server/Client connection 00059 virtual void Close() 00060 {} 00061 00062 // Start listening for messages from the server 00063 virtual int Start() 00064 { 00065 return 0; 00066 } 00067 00068 // Stop listening for messages from the server 00069 virtual void Stop() 00070 {} 00071 00072 virtual int ServerCheck(const char* server_name) 00073 { 00074 return -1; 00075 } 00076 00077 virtual void ClientCheck(const char* name, int uuid, char* name_res, int protocol, int options, int* status, int* result, int open) 00078 {} 00079 virtual void ClientOpen(const char* name, int pid, int uuid, int* shared_engine, int* shared_client, int* shared_graph, int* result) 00080 {} 00081 virtual void ClientOpen(const char* name, int* ref, JackEngineControl** shared_engine, JackGraphManager** shared_manager, JackClientInterface* client, int* result) 00082 {} 00083 virtual void ClientClose(int refnum, int* result) 00084 {} 00085 00086 virtual void ClientActivate(int refnum, int is_real_time, int* result) 00087 {} 00088 virtual void ClientDeactivate(int refnum, int* result) 00089 {} 00090 00091 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) 00092 {} 00093 virtual void PortUnRegister(int refnum, jack_port_id_t port_index, int* result) 00094 {} 00095 00096 virtual void PortConnect(int refnum, const char* src, const char* dst, int* result) 00097 {} 00098 virtual void PortDisconnect(int refnum, const char* src, const char* dst, int* result) 00099 {} 00100 virtual void PortConnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result) 00101 {} 00102 virtual void PortDisconnect(int refnum, jack_port_id_t src, jack_port_id_t dst, int* result) 00103 {} 00104 virtual void PortRename(int refnum, jack_port_id_t port, const char* name, int* result) 00105 {} 00106 00107 virtual void SetBufferSize(jack_nframes_t buffer_size, int* result) 00108 {} 00109 virtual void SetFreewheel(int onoff, int* result) 00110 {} 00111 virtual void ComputeTotalLatencies(int* result) 00112 {} 00113 00114 virtual void ReleaseTimebase(int refnum, int* result) 00115 {} 00116 virtual void SetTimebaseCallback(int refnum, int conditional, int* result) 00117 {} 00118 00119 virtual void GetInternalClientName(int refnum, int int_ref, char* name_res, int* result) 00120 {} 00121 virtual void InternalClientHandle(int refnum, const char* client_name, int* status, int* int_ref, int* result) 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 uuid, int* result) 00124 {} 00125 virtual void InternalClientUnload(int refnum, int int_ref, int* status, int* result) 00126 {} 00127 00128 virtual void SessionNotify(int refnum, const char* target, jack_session_event_type_t type, const char* path, jack_session_command_t** result) 00129 {} 00130 virtual void SessionReply(int refnum, int* result) 00131 {} 00132 virtual void GetUUIDForClientName(int refnum, const char* client_name, char* uuid_res, int* result) 00133 {} 00134 virtual void GetClientNameForUUID(int refnum, const char* uuid, char* name_res, int* result) 00135 {} 00136 virtual void ReserveClientName(int refnum, const char* client_name, const char *uuid, int* result) 00137 {} 00138 virtual void ClientHasSessionCallback(const char* client_name, int* result) 00139 {} 00140 00141 virtual bool IsChannelThread() 00142 { 00143 return false; 00144 } 00145 }; 00146 00147 } 00148 00149 } // end of namespace 00150 00151 #endif 00152