Commit 34e7e2a6 authored by sletz's avatar sletz
Browse files

Define a JACK_INTERNAL_DIR environment variable to be used for internal clients.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3286 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 55f40b6e
......@@ -23,6 +23,10 @@ Michael Voigt
Jackdmp changes log
---------------------------
2009-02-01 Stephane Letz <letz@grame.fr>
* Add a JACK_INTERNAL_DIR environment variable to be used for internal clients.
2009-01-30 Stephane Letz <letz@grame.fr>
* In NetJack2, fix a bug when capture or playback only channels are used.
......
......@@ -74,10 +74,16 @@ static void PrintLoadError(const char* so_name)
static void BuildClientPath(char* path_to_so, int path_len, const char* so_name)
{
const char* driver_dir;
if ((driver_dir = getenv("JACK_DRIVER_DIR")) == 0)
driver_dir = ADDON_DIR;
snprintf(path_to_so, path_len, "%s/%s.so", driver_dir, so_name);
const char* internal_dir;
if ((internal_dir = getenv("JACK_INTERNAL_DIR")) == 0) {
if ((internal_dir = getenv("JACK_DRIVER_DIR")) == 0) {
internal_dir = ADDON_DIR;
}
}
snprintf(path_to_so, path_len, "%s/%s.so", internal_dir, so_name);
printf("internal_dir path_to_so %s %s\n", internal_dir, path_to_so);
}
#endif
......
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