source: titan/plugins/streaminfo/streaminfo.c @ 23241

Last change on this file since 23241 was 17097, checked in by nit, 12 years ago

[titan] add PLUGINVERSION Check

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