source: titan/plugins/mc/mc.c @ 24089

Last change on this file since 24089 was 24089, checked in by nit, 9 years ago

fix

File size: 1.7 KB
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4
5extern struct fb* fb;
6extern struct fb* skinfb;
7
8#include "../titan/player.h"
9#include "mc_header.h"
10#include "mc_global.h"
11#include "mc_mounter.h"
12#include "mc_imdb.h"
13
14#include "mc_videoplayer.h"
15#include "mc_audioplayer.h"
16#include "mc_pictureplayer.h"
17#include "mc_appletrailer.h"
18#include "mc_myvideo.h"
19#include "mc_vlcplayer.h"
20#include "mc_dateibrowser.h"
21#include "mc_internetbrowser.h"
22#include "mc_mediathek.h"
23#include "mc_radio.h"
24#include "mc_webradio.h"
25#include "mc_wetterinfo.h"
26#include "mc_settings.h"
27#include "mc_view.h"
28#include "mc_main.h"
29#include "mc_audioplayer_settings.h"
30#include "mc_videoplayer_settings.h"
31#include "mc_pictureplayer_settings.h"
32
33char pluginname[] = "Media Center";
34char plugindesc[] = "Multi Mediacenter";
35char pluginpic[] = "%pluginpath%/mediacenter/plugin.png";
36
37int pluginaktiv = 0;
38int pluginversion = PLUGINVERSION;
39struct skin* pluginmenu = NULL;
40int pluginflag = 1; //don't show the plugin in pluginmanager
41
42//wird beim laden ausgefuehrt
43void init(void)
44{
45        pluginaktiv = 1;
46        struct skin* mainmenu = getscreen("mainmenu");
47        struct skin* listbox = getscreennode(mainmenu, "listbox");
48        struct skin* child = NULL;
49
50        if(mainmenu == NULL || listbox == NULL)
51                return;
52
53        child = checkscreennode(mainmenu, "mediacenter");
54        if(child != NULL)
55                changeinput(child, "start");
56
57        pluginmenu = child;
58        debug(10, "MC Plugin loadet !!!");
59}
60
61//wird beim entladen ausgefuehrt
62void deinit(void)
63{
64        pluginaktiv = 0;
65        debug(10, "MC Plugin removed !!!");
66}
67
68//wird in der Pluginverwaltung bzw Menue ausfeguehrt
69void start(void)
70{
71        mc_main();
72}
Note: See TracBrowser for help on using the repository browser.