diff options
author | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-05-21 09:05:57 +0000 |
---|---|---|
committer | sletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-05-21 09:05:57 +0000 |
commit | 152a1711cee98e3087bc0d742b1160985117846b (patch) | |
tree | a062139493d961698f3ebe61c58aa9b02b66c1ed /common/JackClientControl.h | |
parent | 8a2e1e2e918c4fe3ab3bfcf85cdd0f3c3b53a325 (diff) | |
download | jack2-152a1711cee98e3087bc0d742b1160985117846b.tar.gz |
New jack_get_client_pid API, implemented on server side.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2299 0c269be4-1314-0410-8aa9-9f06e86f4224
Diffstat (limited to 'common/JackClientControl.h')
-rw-r--r-- | common/JackClientControl.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/JackClientControl.h b/common/JackClientControl.h index 0808cd07..6ca73c45 100644 --- a/common/JackClientControl.h +++ b/common/JackClientControl.h @@ -42,24 +42,25 @@ struct JackClientControl : public JackShmMem volatile bool fTransportSync; /* Will be true when slow-sync cb has to be called */ volatile bool fTransportTimebase; /* Will be true when timebase cb is called with new_pos on */ int fRefNum; + int fPID; bool fActive; - JackClientControl(const char* name, int refnum) + JackClientControl(const char* name, int pid, int refnum) { - Init(name, refnum); + Init(name, pid, refnum); } JackClientControl(const char* name) { - Init(name, -1); + Init(name, 0, -1); } JackClientControl() { - Init("", -1); + Init("", 0, -1); } - void Init(const char* name, int refnum) + void Init(const char* name, int pid, int refnum) { strcpy(fName, name); for (int i = 0; i < kMaxNotification; i++) @@ -72,6 +73,7 @@ struct JackClientControl : public JackShmMem fCallback[kStartFreewheelCallback] = true; fCallback[kStopFreewheelCallback] = true; fRefNum = refnum; + fPID = pid; fTransportState = JackTransportStopped; fTransportSync = false; fTransportTimebase = false; |