# PM_SetSleepCallback

## C Specification

      #include
      void PM_SetSleepCallback(
          PMSleepCallbackInfo*    info,
          PMSleepCallback         callback,
          void*                   arg );

## Description

Sets sleep mode callback information.

Registers the callback function `callback` and its argument `arg` in callback information structure specified with `info`. Specifying this `info` performs sleep mode callback registration.

Only the following processes are performed internally: set `callback` and `arg` in `info` member.

## Arguments

`info` | Pointer to set callback information structure
`callback` | Callback function
`arg` | Callback argument

## Return Values

None.

## See Also

`PM_Init`, `PM_GoSleepMode`, `PM_AppendPreSleepCallback`, `PM_PrependPreSleepCallback`, `PM_AppendPostSleepCallback`, `PM_PrependPostSleepCallback`

## Revision History

10/06/2004 Initial version