X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=moldyn.h;h=8254568af609f69d171862a7ba9d8023bee8decc;hb=9f6af2cd82a72451741b68ca333f94c6c1d2eec5;hp=c5cc064cedc85c1cd417b8b65a7f20fb74c44311;hpb=15b4727e1137600f8f46af027aefd2b5c7a56420;p=physik%2Fposic.git diff --git a/moldyn.h b/moldyn.h index c5cc064..8254568 100644 --- a/moldyn.h +++ b/moldyn.h @@ -71,7 +71,7 @@ typedef struct s_moldyn_schedule { int total_sched; int *runs; double *tau; - int (*hook)(void *moldyn,void *hook); + int (*hook)(void *moldyn,void *hook_params); void *hook_params; } t_moldyn_schedule; @@ -422,8 +422,10 @@ int link_cell_update(t_moldyn *moldyn); int link_cell_neighbour_index(t_moldyn *moldyn,int i,int j,int k,t_list *cell); int link_cell_shutdown(t_moldyn *moldyn); +typedef int (*set_hook)(void *,void *); + int moldyn_add_schedule(t_moldyn *moldyn,int runs,double tau); -int moldyn_set_schedule_hook(t_moldyn *moldyn,void *hook,void *hook_params); +int moldyn_set_schedule_hook(t_moldyn *moldyn,set_hook hook,void *hook_params); int moldyn_integrate(t_moldyn *moldyn); int velocity_verlet(t_moldyn *moldyn);