|
Mac Dev Center
Mac OS X Reference Library Drivers, Kernel, & Hardware: User-Space Device Access Disc Recording Framework Reference
|
DRCoreNotifications.h |
| Includes: | <DiscRecording/DRCoreObject.h> <AvailabilityMacros.h> |
Disc Recording notification interfaces.
Adds an observer callback for a notification center.
Creates a notification center that can be used to register for and receive asyncronous notifications.
Creates a run-loop source object for a notification center.
Returns the type identifier of all DRNotificationCenter instances.
Removes an observer callback from a notification center.
DRNotificationCenterAddObserver |
Adds an observer callback for a notification center.
extern void DRNotificationCenterAddObserver( DRNotificationCenterRef center, const void *observer, DRNotificationCallback callback, CFStringRef name, DRTypeRef object) ;
centerThe notification center that the new observer callback is for.
observerThe observer callback to add, which gets passed to the callback.
callbackThe observer callback to use for notification delivery.
nameThe notification name for adding the observer.
objectThe object the notification name is associated with.
DRNotificationCenterCreate |
Creates a notification center that can be used to register for and receive asyncronous notifications.
extern DRNotificationCenterRef DRNotificationCenterCreate( void) ;
Returns reference to a new DRNotificationCenter object.
DRNotificationCenterCreateRunLoopSource |
Creates a run-loop source object for a notification center.
extern CFRunLoopSourceRef DRNotificationCenterCreateRunLoopSource( DRNotificationCenterRef center) ;
centerThe notification center that the new run-loop source object is for.
If this parameter is not a valid DRNotificationCenter object, the behavior is undefined.
Returns a reference to a CFRunLoopSource object.
DRNotificationCenterGetTypeID |
Returns the type identifier of all DRNotificationCenter instances.
extern CFTypeID DRNotificationCenterGetTypeID( void) ;
DRNotificationCenterRemoveObserver |
Removes an observer callback from a notification center.
extern void DRNotificationCenterRemoveObserver( DRNotificationCenterRef center, const void *observer, CFStringRef name, DRTypeRef object) ;
centerThe notification center that the observer callback will be removed from.
observerThe observer callback to remove.
nameThe notification name for removing the observer callback.
objectThe object the notification name is associated with.
Delivers a notification.
The type of a reference to a DRNotificationCenter object.
DRNotificationCallback |
Delivers a notification.
typedef void ( *DRNotificationCallback)( DRNotificationCenterRef center, void *observer, CFStringRef name, DRTypeRef object, CFDictionaryRef info);
centerThe notification center that this callback is associated with.
observerThe observer specified when this callback was added.
nameThe notification name.
objectThe object that this notification is associated with, or NULL when there is no associated object.
infoA dictionary object containing additional notification information, or NULL when there is no associated object.
DRNotificationCenterRef |
The type of a reference to a DRNotificationCenter object.
typedef struct __DRNotificationCenter* DRNotificationCenterRef;
Last Updated: 2009-08-12