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

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

[titan] update imdb

File size: 1.1 KB
Line 
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;
12int pluginflag = 0; //don't show the plugin in pluginmanager
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);
32        readscreen(tmpstr, 201, 1);
33        free(tmpstr); tmpstr = NULL;
34        debug(10, "Panel Plugin loadet !!!");
35}
36
37//wird beim entladen ausgefuehrt
38void deinit(void)
39{
40        delmarkedscreen(201);
41        pluginaktiv = 0;
42        debug(10, "Imdb Plugin removed !!!");
43}
44
45//wird in der Pluginverwaltung bzw Menue ausfeguehrt
46void start(void)
47{
48        screenimdb(NULL);
49}
Note: See TracBrowser for help on using the repository browser.