1 #ifndef SCRIPT_SHOOT_HOOKS_H 2 #define SCRIPT_SHOOT_HOOKS_H 3 4 // CHDK Script shoot hooks interface 5 6 // Note: used in modules and platform independent code. 7 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values) 8 9 // initialize, when script is loaded or unloaded 10 void script_shoot_hooks_reset(void); 11 // enable hooking with specified timeout, 0 to disable 12 void script_shoot_hook_set(int hook,int timeout); 13 // called from hooked task, returns when hook is released or times out 14 void script_shoot_hook_run(int hook); 15 // returns true when hooked task in hook_run 16 int script_shoot_hook_ready(int hook); 17 // called from script to allow hook_run to return 18 void script_shoot_hook_continue(int hook); 19 // return number of times hook has been called for this script 20 int script_shoot_hook_count(int hook); 21 22 extern const char* shoot_hook_names[]; 23 #endif 24