Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),
NULL,
(CFNotificationCallback)ChangeCallBack,
(CFStringRef)kASDarwinNotifyChange,
NULL,
CFNotificationSuspensionBehaviorDeliverImmediately);
static void ChangeCallBack() {
reload();
}
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(),
(CFStringRef)kASDarwinNotifyChange, nil, nil, YES);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment