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

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