Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 6 - Power Manager / Power Manager Reference
Data Structures


Sleep Queue Record

The SleepQInstall and SleepQRemove procedures take as a parameter the address of a sleep queue record, which is defined by the SleepQRec data type.

TYPE SleepQRec = 
   RECORD
      sleepQLink:    SleepQRecPtr;  {next queue element}
      sleepQType:    Integer;       {queue type = 16}
      sleepQProc:    ProcPtr;       {pointer to sleep procedure}
      sleepQFlags:   Integer;       {reserved}
   END;
   SleepQRecPtr = ^SleepQRec;
Field Description
sleepQLink
A pointer to the next element in the queue. This pointer is maintained internally by the Power Manager; your application should not modify this field.
sleepQType
The type of the queue, which must be the constant slpQType (16).
sleepQProc
A pointer to your sleep procedure. See "Sleep Procedures," on page 6-65, for details on this routine.
sleepQFlags
Reserved for use by Apple Computer, Inc.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996