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