Trisurf Monte Carlo simulator
Samo Penic
2018-12-25 eb7d7ef09dce79ec0c95f8e8779abe963c4043f2
commit | author | age
eb7d7e 1 #include "plugins.h"
SP 2 #include <stdlib.h>
3 #include "general.h"
4 char plugin_name[] = "First plugin";
5 char plugin_description[]= "Plugin that shows how plugin should be made";
6 char plugin_author[] = "SAMO PENIC";
7
8 ts_plugin_details *init (){
9     ts_fprintf(stdout,"Hello. Plugin %s is initiating.\n\nThis will load the details section of the plugin\n", plugin_name);
10
11     ts_plugin_details *details=(ts_plugin_details *)calloc(1,sizeof(ts_plugin_details));
12     details->name = plugin_name;
13     return details;    
14 }
15
16 void cleanup(){
17     ts_fprintf(stdout,"Goodbye from plugin %s. This functions clears what would be created in init...\n",plugin_name);
18 }