source: titan/plugins/weather/weather.c @ 43344

Last change on this file since 43344 was 24056, checked in by nit, 7 years ago

[titan] add new plugindir system

File size: 758 bytes
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "weather.h"
5
6char pluginname[] = "Weather";
7char plugindesc[] = "Weather";
8char pluginpic[] = "%pluginpath%/weather/plugin.png";
9
10int pluginaktiv = 0;
11int pluginversion = PLUGINVERSION;
12
13//wird beim laden ausgefuehrt
14void init(void)
15{
16        char* tmpstr = NULL;
17
18        tmpstr = createpluginpath("/weather/skin.xml", 0);
19        readscreen(tmpstr, 208, 1);
20        free(tmpstr); tmpstr = NULL;
21
22        pluginaktiv = 1;
23        debug(10, "Weather Plugin loadet !!!");
24}
25
26//wird beim entladen ausgefuehrt
27void deinit(void)
28{
29        delmarkedscreen(208);
30        pluginaktiv = 0;
31        debug(10, "Weather Plugin removed !!!");
32}
33
34//wird in der Pluginverwaltung bzw Menue ausfeguehrt
35void start(void)
36{
37        screenweather();
38}
Note: See TracBrowser for help on using the repository browser.