source: titan/plugins/hello/hello.c @ 26912

Last change on this file since 26912 was 17097, checked in by nit, 11 years ago

[titan] add PLUGINVERSION Check

File size: 1.0 KB
RevLine 
[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
12char pluginname[] = "Hello";
13char plugindesc[] = "Hello World Demo";
[9781]14char pluginpic[] = "%pluginpath%/hello/plugin.png";
15
[7934]16int pluginaktiv = 0;
[17097]17int pluginversion = PLUGINVERSION;
[7504]18
19//wird beim laden ausgefuehrt
20void init(void)
21{
[7934]22        pluginaktiv = 1;
[7504]23        debug(10, "Hello Plugin loadet !!!");
24}
25
26//wird beim entladen ausgefuehrt
27void deinit(void)
28{
[7934]29        pluginaktiv = 0;
[7504]30        debug(10, "Hello Plugin removed !!!");
31}
32
33//wird in der Pluginverwaltung bzw Menue ausfeguehrt
34void 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.