1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
diff --git a/common/Jackdmp.cpp b/common/Jackdmp.cpp
index 7eea281..4b8d75d 100644
--- a/common/Jackdmp.cpp
+++ b/common/Jackdmp.cpp
@@ -50,43 +50,11 @@ are "hard-coded" in the source. A much better approach would be to use the contr
- get available drivers and their possible parameters, then prepare to parse them.
*/
-#ifdef __APPLE__
-#include <CoreFoundation/CFNotificationCenter.h>
-#include <CoreFoundation/CoreFoundation.h>
-
-static void notify_server_start(const char* server_name)
-{
- // Send notification to be used in the JackRouter plugin
- CFStringRef ref = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
- CFSTR("com.grame.jackserver.start"),
- ref,
- NULL,
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
- CFRelease(ref);
-}
-
-static void notify_server_stop(const char* server_name)
-{
- // Send notification to be used in the JackRouter plugin
- CFStringRef ref1 = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
- CFSTR("com.grame.jackserver.stop"),
- ref1,
- NULL,
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
- CFRelease(ref1);
-}
-
-#else
-
static void notify_server_start(const char* server_name)
{}
static void notify_server_stop(const char* server_name)
{}
-#endif
-
static void copyright(FILE* file)
{
fprintf(file, "jackdmp " VERSION "\n"
|