Line | |
---|
1 | #include "../titan/struct.h" |
---|
2 | #include "../titan/debug.h" |
---|
3 | #include "../titan/header.h" |
---|
4 | |
---|
5 | char pluginname[] = "Hello"; |
---|
6 | char plugindesc[] = "Hello World Demo"; |
---|
7 | char pluginpic[] = "%pluginpath%/hello/plugin.png"; |
---|
8 | |
---|
9 | int pluginaktiv = 0; |
---|
10 | |
---|
11 | //wird beim laden ausgefuehrt |
---|
12 | void init(void) |
---|
13 | { |
---|
14 | pluginaktiv = 1; |
---|
15 | debug(10, "Hello Plugin loadet !!!"); |
---|
16 | } |
---|
17 | |
---|
18 | //wird beim entladen ausgefuehrt |
---|
19 | void deinit(void) |
---|
20 | { |
---|
21 | pluginaktiv = 0; |
---|
22 | debug(10, "Hello Plugin removed !!!"); |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
27 | void start(void) |
---|
28 | { |
---|
29 | textbox(_("Message"), _("Hello World !"), _("EXIT"), getrcconfigint("rcexit", NULL), '\0', 0, '\0', 0, '\0', 0, 600, 200, 0, 0); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.