Commit 909c1616 authored by sletz's avatar sletz
Browse files

Add jackctl_server_load_master/jackctl_server_unload_master API.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3517 0c269be4-1314-0410-8aa9-9f06e86f4224
parent fe53d66c
......@@ -24,6 +24,10 @@ Paul Davis
---------------------------
Jackdmp changes log
---------------------------
2009-04-21 Stephane Letz <letz@grame.fr>
* Add jackctl_server_load_master/jackctl_server_unload_master API.
2009-04-20 Stephane Letz <letz@grame.fr>
......
......@@ -1182,7 +1182,7 @@ EXPORT bool jackctl_server_unload_internal(
}
}
EXPORT bool jackctl_server_load_slave(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
EXPORT bool jackctl_server_add_slave(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
{
if (server_ptr->engine != NULL) {
driver_ptr->info = server_ptr->engine->AddSlave(driver_ptr->desc_ptr, driver_ptr->set_parameters);
......@@ -1192,7 +1192,7 @@ EXPORT bool jackctl_server_load_slave(jackctl_server * server_ptr, jackctl_drive
}
}
EXPORT bool jackctl_server_unload_slave(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
EXPORT bool jackctl_server_remove_slave(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
{
if (server_ptr->engine != NULL) {
server_ptr->engine->RemoveSlave(driver_ptr->info);
......@@ -1202,3 +1202,14 @@ EXPORT bool jackctl_server_unload_slave(jackctl_server * server_ptr, jackctl_dri
}
}
EXPORT bool jackctl_server_load_master(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
{
// TODO
return false;
}
EXPORT bool jackctl_server_unload_master(jackctl_server * server_ptr, jackctl_driver * driver_ptr)
{
// TODO
return false;
}
......@@ -220,12 +220,19 @@ EXPORT bool jackctl_server_unload_internal(
jackctl_server * server,
jackctl_internal * internal);
EXPORT bool jackctl_server_load_slave(jackctl_server_t * server,
EXPORT bool jackctl_server_add_slave(jackctl_server_t * server,
jackctl_driver_t * driver);
EXPORT bool jackctl_server_unload_slave(jackctl_server_t * server,
EXPORT bool jackctl_server_remove_slave(jackctl_server_t * server,
jackctl_driver_t * driver);
EXPORT bool
jackctl_server_load_master(jackctl_server_t * server,
jackctl_driver_t * driver);
EXPORT bool
jackctl_server_unload_master(jackctl_server_t * server,
jackctl_driver_t * driver);
#if 0
{ /* Adjust editor indent */
......
......@@ -416,7 +416,7 @@ int main(int argc, char* argv[])
goto fail_free;
}
jackctl_server_load_slave(server_ctl, midi_driver_ctl);
jackctl_server_add_slave(server_ctl, midi_driver_ctl);
}
*/
......
......@@ -511,12 +511,21 @@ jack_log(
/* @} */
bool
jackctl_server_load_slave(jackctl_server_t * server,
jackctl_server_add_slave(jackctl_server_t * server,
jackctl_driver_t * driver);
bool
jackctl_server_unload_slave(jackctl_server_t * server,
jackctl_server_remove_slave(jackctl_server_t * server,
jackctl_driver_t * driver);
bool
jackctl_server_load_master(jackctl_server_t * server,
jackctl_driver_t * driver);
bool
jackctl_server_unload_master(jackctl_server_t * server,
jackctl_driver_t * driver);
#if 0
{ /* Adjust editor indent */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment