define __KERNEL_STRICT_NAMES to avoid inclusion of kernel types on systems that carry...
[cake.git] / rom / intuition / setedithook.c
blobae67d7b641b9992a708d3eadcdceb567eaeda848
1 /*
2 Copyright © 1995-2007, 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 stringgagdget 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 HISTORY
43 27-11-96 digulla automatically created from
44 intuition_lib.fd and clib/intuition_protos.h
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct Hook *oldhook = GetPrivIBase(IntuitionBase)->GlobalEditHook;
52 GetPrivIBase(IntuitionBase)->GlobalEditHook = hook;
54 return (oldhook);
56 AROS_LIBFUNC_EXIT
57 } /* SetEditHook */