next up previous contents
Next: set_exit_callback() Up: The C API Previous: The Absolute Minimum   Contents

set_init_callback()

/*Prototype:*/
void set_init_callback(void (*init_callback)(struct object *));
set_init_callback() sets the initialization callback of a class. The example line of code sets the function init_my_module() as the initialization callback of the corresponding class.
 
/*Example of usage:*/
   set_init_callback(init_my_module);



2003-03-04