ADC Home > Reference Library > Reference > Darwin > Disk Arbitration Framework Reference

 


DASession.h

Includes:
<CoreFoundation/CoreFoundation.h>

Overview



Functions

DAApprovalSessionCreate
Creates a new approval session.
DAApprovalSessionGetTypeID
Returns the type identifier of all DAApprovalSession instances.
DAApprovalSessionScheduleWithRunLoop
Schedules the approval session on a run loop.
DAApprovalSessionUnscheduleFromRunLoop
Unschedules the approval session from a run loop.
DASessionCreate
Creates a new session.
DASessionGetTypeID
Returns the type identifier of all DASession instances.
DASessionScheduleWithRunLoop
Schedules the session on a run loop.
DASessionUnscheduleFromRunLoop
Unschedules the session from a run loop.

DAApprovalSessionCreate


Creates a new approval session.

extern DAApprovalSessionRef DAApprovalSessionCreate(
    CFAllocatorRef allocator );  
Return Value

A reference to a new DAApprovalSession.

Discussion

The caller of this function receives a reference to the returned object. The caller also implicitly retains the object and is responsible for releasing it.


DAApprovalSessionGetTypeID


Returns the type identifier of all DAApprovalSession instances.

extern CFTypeID DAApprovalSessionGetTypeID(
    void );  


DAApprovalSessionScheduleWithRunLoop


Schedules the approval session on a run loop.

extern void DAApprovalSessionScheduleWithRunLoop(
    DAApprovalSessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode );  
Parameters
session
The approval session which is being scheduled.
runLoop
The run loop on which the approval session should be scheduled.
runLoopMode
The run loop mode in which the approval session should be scheduled.


DAApprovalSessionUnscheduleFromRunLoop


Unschedules the approval session from a run loop.

extern void DAApprovalSessionUnscheduleFromRunLoop(
    DAApprovalSessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode );  
Parameters
session
The approval session which is being unscheduled.
runLoop
The run loop on which the approval session is scheduled.
runLoopMode
The run loop mode in which the approval session is scheduled.


DASessionCreate


Creates a new session.

extern DASessionRef DASessionCreate(
    CFAllocatorRef allocator );  
Return Value

A reference to a new DASession.

Discussion

The caller of this function receives a reference to the returned object. The caller also implicitly retains the object and is responsible for releasing it.


DASessionGetTypeID


Returns the type identifier of all DASession instances.

extern CFTypeID DASessionGetTypeID(
    void );  


DASessionScheduleWithRunLoop


Schedules the session on a run loop.

extern void DASessionScheduleWithRunLoop(
    DASessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode );  
Parameters
session
The session which is being scheduled.
runLoop
The run loop on which the session should be scheduled.
runLoopMode
The run loop mode in which the session should be scheduled.


DASessionUnscheduleFromRunLoop


Unschedules the session from a run loop.

extern void DASessionUnscheduleFromRunLoop(
    DASessionRef session,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode );  
Parameters
session
The session which is being unscheduled.
runLoop
The run loop on which the session is scheduled.
runLoopMode
The run loop mode in which the session is scheduled.

Typedefs


DAApprovalSessionRef


typedef struct __DAApprovalSession * DAApprovalSessionRef;  
Discussion

Type of a reference to DAApprovalSession instances.


DASessionRef


typedef struct __DASession * DASessionRef;  
Discussion

Type of a reference to DASession instances.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2008-03-11