Rev | Line | |
---|
[15388] | 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 | |
---|
[10966] | 8 | #include "../titan/struct.h" |
---|
| 9 | #include "../titan/debug.h" |
---|
| 10 | #include "../titan/header.h" |
---|
[7504] | 11 | |
---|
| 12 | char pluginname[] = "Hello"; |
---|
| 13 | char plugindesc[] = "Hello World Demo"; |
---|
[9781] | 14 | char pluginpic[] = "%pluginpath%/hello/plugin.png"; |
---|
| 15 | |
---|
[7934] | 16 | int pluginaktiv = 0; |
---|
[17097] | 17 | int pluginversion = PLUGINVERSION; |
---|
[7504] | 18 | |
---|
| 19 | //wird beim laden ausgefuehrt |
---|
| 20 | void init(void) |
---|
| 21 | { |
---|
[7934] | 22 | pluginaktiv = 1; |
---|
[7504] | 23 | debug(10, "Hello Plugin loadet !!!"); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | //wird beim entladen ausgefuehrt |
---|
| 27 | void deinit(void) |
---|
| 28 | { |
---|
[7934] | 29 | pluginaktiv = 0; |
---|
[7504] | 30 | debug(10, "Hello Plugin removed !!!"); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
| 34 | void start(void) |
---|
| 35 | { |
---|
[10258] | 36 | textbox(_("Message"), _("Hello World !"), _("EXIT"), getrcconfigint("rcexit", NULL), '\0', 0, '\0', 0, '\0', 0, 600, 200, 0, 0); |
---|
[7504] | 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.