CHDK Wiki
Advertisement

Starting a draft page to document eventprocs this is an incomplete draft please update with your observations. Thread http://chdk.setepontos.com/index.php/topic,4417.0.html

Overview

An event procedure (or eventproc) is a function in the canon firmware associated with a text name. An API exists to register, execute and un-register them.

Event Procedure API functions

  • int ExecuteEventProcedure(const char *name,...)

executes the named eventproc, with the supplied arguments. Returns -1 if the eventproc isn't registered. Otherwise, returns the eventprocs return value (TODO, not verified!)

  • void ExportToEventProcedure(const char *name,void *pfunc)

registers eventproc pfunc with name.

Advertisement