source: titan/plugins/imdbapi/imdbapi.c @ 16384

Last change on this file since 16384 was 16384, checked in by obi, 12 years ago

[titan] move imdb to imdbapi and add real imdb

File size: 1.1 KB
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "imdbapi.h"
5
6char pluginname[] = "IMDb-API";
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, "imdbapi");
27        if(child != NULL)
28                changeinput(child, "start");
29
30        pluginmenu = child;
31        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/imdbapiAPI/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, "imdbapiAPI Plugin removed !!!");
43}
44
45//wird in der Pluginverwaltung bzw Menue ausfeguehrt
46void start(void)
47{
48        screenimdbapiAPI(NULL);
49}
Note: See TracBrowser for help on using the repository browser.