00001
00017 #include <stdlib.h>
00018 #include "boris.h"
00019
00020
00021
00022
00023
00024 struct plugin_example_class {
00025 struct plugin_basic_class base_class;
00026 };
00027
00028
00029
00030
00031 extern const struct plugin_example_class plugin_class;
00032
00033
00034
00035
00036 static int initialize(void) {
00037 b_log(B_LOG_INFO, "example", "Example plugin loaded (" __FILE__ " compiled " __TIME__ " " __DATE__ ")");
00038 return 1;
00039 }
00040
00041 static int shutdown(void) {
00042 b_log(B_LOG_INFO, "example", "Example plugin shutting down...");
00043 b_log(B_LOG_INFO, "example", "Example plugin ended.");
00044 return 1;
00045 }
00046
00047
00048
00049
00050
00051
00052 const struct plugin_example_class plugin_class = {
00053 .base_class = { PLUGIN_API, "example", initialize, shutdown },
00054 };