try to make sure compiler/include/mmakefile is always refreshed correctly.
[AROS.git] / rom / intuition / setedithook.c
blob8e719352578f43c14f78066849733f7bc5185779
1 /*
2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH1(struct Hook *, SetEditHook,
16 /* SYNOPSIS */
17 AROS_LHA(struct Hook *, hook, A0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 82, Intuition)
22 /* FUNCTION
23 Sets the global (default) string editing hook of Intuition
24 string gadgets.
26 INPUTS
27 The string gadget editing hook to replace the old one.
29 RESULT
30 The old edit hook.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 struct Hook *oldhook = GetPrivIBase(IntuitionBase)->GlobalEditHook;
48 GetPrivIBase(IntuitionBase)->GlobalEditHook = hook;
50 return (oldhook);
52 AROS_LIBFUNC_EXIT
53 } /* SetEditHook */