source: titan/plugins/imdb/imdb.c @ 13646

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

fix

File size: 1.1 KB
RevLine 
[12607]1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "imdb.h"
5
6char pluginname[] = "Imdb";
7char plugindesc[] = "Extensions";
8char pluginpic[] = "%pluginpath%/panel/plugin.png";
9
10int pluginaktiv = 0;
11struct skin* pluginmenu = NULL;
[12615]12int pluginflag = 0; //don't show the plugin in pluginmanager
[12607]13
14//wird beim laden ausgefuehrt
15void init(void)
16{
17        pluginaktiv = 1;
18        char* tmpstr = NULL;
19        struct skin* mainmenu = getscreen("mainmenu");
20        struct skin* listbox = getscreennode(mainmenu, "listbox");
21        struct skin* child = NULL;
22
23        if(mainmenu == NULL || listbox == NULL)
24                return;
25
26        child = getscreennode(mainmenu, "imdb");
27        if(child != NULL)
28                changeinput(child, "start");
29
30        pluginmenu = child;
31        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/imdb/skin.xml", 0, 0);
[13646]32        readscreen(tmpstr, 201, 1);
[12607]33        free(tmpstr); tmpstr = NULL;
34        debug(10, "Panel Plugin loadet !!!");
35}
36
37//wird beim entladen ausgefuehrt
38void deinit(void)
39{
[13646]40        delmarkedscreen(201);
[12607]41        pluginaktiv = 0;
42        debug(10, "Imdb Plugin removed !!!");
43}
44
45
46//wird in der Pluginverwaltung bzw Menue ausfeguehrt
47void start(void)
48{
49        imdb();
50}
Note: See TracBrowser for help on using the repository browser.