OSErr VSLNewInterruptService(RegEntryIDPtr serviceOwner, InterruptServiceType
serviceType,
InterruptServiceId* serviceID);
typedef unsigned long InterruptServiceId;
typedef ResType InterruptServiceType;
enum {
kVBLService = 'vbl'; // vertical blanking
kHBLService = 'hbl'; // horizontal blanking
kFrameService = 'fram'; // interlace mode
};
VSLNewInterruptService creates a new interrupt for a graphics device. The service owner is the RegEntryIDPtr value passed to the driver at install time. This is used to identify the owner. The service type is a resType value indicating the type of interrupt to be created. At this time only one interrupt of a given type can be created by a driver. The serviceID value is returned by VSL and is used to specify the service for any further calls to VSL.
VSLNewInterruptService can be called only at driver install, open, and close times--times when memory management calls are safe.