static void task_start_hook( long p0, long p1, long p2, long p3, long p4, long p5, long p6, long p7, long p8, long p9) { _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0); // First creates the SpyTask, i.e. the main CHDK loop //create our second keypress task _CreateTask("SpyTask2", 0x18, 0x2000, kbd_process_task, 0); taskprev(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9 ); // then, whatever was the call intended to be... }
static void task_start_hook( long p0, long p1, long p2, long p3, long p4, long p5, long p6, long p7, long p8, long p9) { _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0); taskprev(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9 ); }
/*---------------------------------------------------------------------- CreateTask_spytask -----------------------------------------------------------------------*/ void CreateTask_spytask() { _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0); }
// this would make more sense in generic/main.c but not all a cameras use it void init_chdk_ptp_task() { _CreateTask("InitCHDKPTP", 0x19, 0x2000, init_chdk_ptp, 0); };