source: titan/plugins/tiwakeup/tiwakeup.c @ 43368

Last change on this file since 43368 was 24056, checked in by nit, 10 years ago

[titan] add new plugindir system

File size: 1.1 KB
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#include "tiwakeup.h"
12
13char pluginname[] = "tiWakeup";
14char plugindesc[] = "tiWakeup";
15char pluginpic[] = "%pluginpath%/tiwakeup/plugin.png";
16
17int pluginaktiv = 0;
18int pluginversion = PLUGINVERSION;
19
20//wird beim laden ausgefuehrt
21void init(void)
22{
23        char* tmpstr = NULL;
24
25        tmpstr = createpluginpath("/tiwakeup/skin.xml", 0);
26        readscreen(tmpstr, 280, 1);
27        free(tmpstr); tmpstr = NULL;
28
29        pluginaktiv = 1;
30        debug(10, "tiWakeup Plugin loadet !!!");
31}
32
33//wird beim entladen ausgefuehrt
34void deinit(void)
35{
36        delmarkedscreen(280);
37        pluginaktiv = 0;
38        debug(10, "tiWakeup Plugin removed !!!");
39}
40
41//wird in der Pluginverwaltung bzw Menue ausfeguehrt
42void start(void)
43{
44        screentiwakeup();
45}
Note: See TracBrowser for help on using the repository browser.