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