Use "pngdt" as the base name for png.datatype's include files.
[AROS.git] / test / exec / vblank.c
blob06f8ec4d8d26e5811754c7e5b8bf675c654e4c93
1 #include <aros/asmcall.h>
2 #include <exec/interrupts.h>
3 #include <hardware/intbits.h>
5 #include <proto/dos.h>
6 #include <proto/exec.h>
8 int __nocommandline = 1;
10 static int counter = 0;
12 static AROS_INTH1(vblank_handler, APTR, mydata)
14 AROS_INTFUNC_INIT
16 (void)mydata;
17 counter++;
18 return 0;
20 AROS_INTFUNC_EXIT
24 static struct Interrupt vblank_int =
26 .is_Code = (APTR)vblank_handler
29 int main(void)
31 AddIntServer(INTB_VERTB, &vblank_int);
33 while (!(CheckSignal(SIGBREAKF_CTRL_C)))
35 Printf("\rVBlank counter: %lu ", counter);
38 RemIntServer(INTB_VERTB, &vblank_int);
40 Printf("\nTerminated\n");
42 return 0;