2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
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
)
18 ObtainSemaphore(&ConsoleDevice
->copyBufferLock
);
19 AddTail((struct List
*)&ConsoleDevice
->sniphooks
, (struct Node
*)hook
);
20 ReleaseSemaphore(&ConsoleDevice
->copyBufferLock
);