revert between 56095 -> 55830 in arch
[AROS.git] / rom / devs / console / addconsniphook.c
blob1d9da865133ff6eba67903f45f4c33c3fd7a83a9
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <proto/console.h>
8 #include <proto/exec.h>
10 #include "console_gcc.h"
12 AROS_LH1(void, AddConSnipHook,
13 AROS_LHA(struct Hook *, hook, A0),
14 struct ConsoleBase *, ConsoleDevice, 11, Console)
16 AROS_LIBFUNC_INIT
18 ObtainSemaphore(&ConsoleDevice->copyBufferLock);
19 AddTail((struct List *)&ConsoleDevice->sniphooks, (struct Node *)hook);
20 ReleaseSemaphore(&ConsoleDevice->copyBufferLock);
22 AROS_LIBFUNC_EXIT