Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1688 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.68
sletz 17 years ago
parent
commit
ad047f3845
2 changed files with 0 additions and 35 deletions
  1. +0
    -3
      common/JackRequest.h
  2. +0
    -32
      common/JackSocket.cpp

+ 0
- 3
common/JackRequest.h View File

@@ -51,10 +51,8 @@ struct JackRequest
kSetClientCapabilities = 9,
kGetPortConnections = 10,
kGetPortNConnections = 11,

kReleaseTimebase = 12,
kSetTimebaseCallback = 13,

kSetBufferSize = 20,
kSetFreeWheel = 21,
kClientCheck = 22,
@@ -66,7 +64,6 @@ struct JackRequest
kInternalClientHandle = 28,
kInternalClientLoad = 29,
kInternalClientUnload = 30,

kNotification = 31
};



+ 0
- 32
common/JackSocket.cpp View File

@@ -145,38 +145,6 @@ int JackClientSocket::Write(void* data, int len)
}
}

/*
void
jack_cleanup_files ()
{
DIR *dir;
struct dirent *dirent;
// its important that we remove all files that jackd creates
// because otherwise subsequent attempts to start jackd will
// believe that an instance is already running.
if ((dir = opendir (jack_server_dir)) == NULL) {
fprintf (stderr, "jack(%d): cannot open jack FIFO directory "
"(%s)\n", getpid(), strerror (errno));
return;
}
while ((dirent = readdir (dir)) != NULL) {
if (strncmp (dirent->d_name, "jack-", 5) == 0 ||
strncmp (dirent->d_name, "jack_", 5) == 0) {
char fullpath[PATH_MAX+1];
snprintf (fullpath, sizeof (fullpath), "%s/%s",
jack_server_dir, dirent->d_name);
unlink (fullpath);
}
}
closedir (dir);
}
*/

int JackServerSocket::Bind(const char* dir, const char* name, int which) // A revoir : utilisation de "which"
{
struct sockaddr_un addr;


Loading…
Cancel
Save