A few more tweaks for AU hosting, WIP
[carla.git] / source / libjack / libjack_client.cpp
blobe1d26ccd437291c545aa51319a954ec0824b5dbb
1 /*
2 * Carla JACK API for external applications
3 * Copyright (C) 2016-2022 Filipe Coelho <falktx@falktx.com>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or 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 * For a full copy of the GNU General Public License see the doc/GPL.txt file.
18 #include "libjack.hpp"
20 CARLA_BACKEND_USE_NAMESPACE
22 // --------------------------------------------------------------------------------------------------------------------
24 CARLA_PLUGIN_EXPORT
25 int jack_client_name_size(void)
27 carla_debug("%s()", __FUNCTION__);
29 return STR_MAX;
32 CARLA_PLUGIN_EXPORT
33 char* jack_get_client_name(jack_client_t* client)
35 carla_debug("%s(%p)", __FUNCTION__, client);
37 JackClientState* const jclient = (JackClientState*)client;
38 CARLA_SAFE_ASSERT_RETURN(jclient != nullptr, nullptr);
40 return jclient->name;
43 // --------------------------------------------------------------------------------------------------------------------
45 CARLA_PLUGIN_EXPORT
46 int jack_internal_client_new(const char*, const char*, const char*)
48 return ENOSYS;
51 CARLA_PLUGIN_EXPORT
52 void jack_internal_client_close(const char*)
56 // --------------------------------------------------------------------------------------------------------------------
58 CARLA_PLUGIN_EXPORT
59 int jack_get_client_pid(const char*)
61 return 0;
64 // --------------------------------------------------------------------------------------------------------------------