2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 Desc: Add a reset callback to internal list
9 #include <exec/interrupts.h>
10 #include <proto/exec.h>
12 #include "exec_intern.h"
14 /*****************************************************************************
18 AROS_LH1(BOOL
, AddResetCallback
,
21 AROS_LHA(struct Interrupt
*, interrupt
, A0
),
24 struct ExecBase
*, SysBase
, 167, Exec
)
27 Install a system reset notification callback. The callback
28 will be called whenever system reboot is performed.
30 The given Interrupt structure is inserted into the callback list
31 according to its priority. The callback code is called with the same
32 arguments as an interrupt server.
35 interrupt - A pointer to an Interrupt structure
38 TRUE for success, FALSE for failure
41 This function is compatible with AmigaOS v4.
50 On AROS this function cannot fail. Return value is present for
51 AmigaOS v4 compatibility.
53 ******************************************************************************/
57 struct IntExecBase
*IntSysBase
= (struct IntExecBase
*)SysBase
;
59 Enqueue(&IntSysBase
->ResetHandlers
, &interrupt
->is_Node
);