#include "plugins.h" #include #include "general.h" char plugin_name[] = "First plugin"; char plugin_description[]= "Plugin that shows how plugin should be made"; char plugin_author[] = "SAMO PENIC"; ts_plugin_details *init (){ // ts_fprintf(stdout,"Hello. Plugin %s is initiating. This will load the details section of the plugin\n", plugin_name); ts_plugin_details *details=(ts_plugin_details *)calloc(1,sizeof(ts_plugin_details)); details->name = plugin_name; return details; } void at_start(int argc, char **argv){ ts_fprintf(stdout, "This will be run at the start of the program\n"); ts_fprintf(stdout, "This plugin doesn't do anything useful :/. at_start function will be modified in the future!\n"); } void *after_vesicle_init(ts_vesicle *vesicle){ ts_fprintf(stdout, "This function can modify vesicle before the start of the simulation. It has to return pointer to vesicle!!!\n"); return vesicle; } ts_bool vm_hard_constraint(ts_vesicle *vesicle, ts_vertex *vtx, ts_vertex *ovtx){ return TS_SUCCESS; } void cleanup(){ ts_fprintf(stdout,"Goodbye from plugin %s. This functions clears what would be created in init...\n",plugin_name); }