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

Last change on this file since 44064 was 44064, checked in by obi, 4 years ago

testfix imdb

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