Minor fixes to comments.
[AROS.git] / rom / devs / console / addconsniphook.c
blob7407ccaaff1a3da8f6f9b99aad139784e27d71df
2 #include <aros/debug.h>
3 #include <proto/console.h>
4 #include <proto/exec.h>
6 #include "console_gcc.h"
8 AROS_LH1(void, AddConSnipHook,
9 AROS_LHA(struct Hook*, hook, A0),
10 struct ConsoleBase *, ConsoleDevice, 11, Console)
12 AROS_LIBFUNC_INIT
14 ObtainSemaphore(&ConsoleDevice->copyBufferLock);
15 AddTail((struct List*)&ConsoleDevice->sniphooks, (struct Node*)hook);
16 ReleaseSemaphore(&ConsoleDevice->copyBufferLock);
18 AROS_LIBFUNC_EXIT