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

Last change on this file since 16512 was 15561, checked in by nit, 12 years ago

[titan] add plugin streaminfo

File size: 828 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;
11struct skin* pluginmenu = NULL;
12int pluginflag = 0;
13
14//wird beim laden ausgefuehrt
15void init(void)
16{
17        pluginaktiv = 1;
18        char* tmpstr = NULL;
19       
20        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/streaminfo/skin.xml", 0, 0);
21        readscreen(tmpstr, 225, 1);
22        free(tmpstr); tmpstr = NULL;
23 
24        debug(10, "Streaminfo Plugin loadet !!!");
25}
26
27//wird beim entladen ausgefuehrt
28void deinit(void)
29{
30        delmarkedscreen(225);
31        pluginaktiv = 0;
32        debug(10, "Streaminfo Plugin removed !!!");
33}
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.