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

Last change on this file since 24088 was 24088, checked in by nit, 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;
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
33extern struct fb* skinfb;
34
35char pluginname[] = "Media Center";
36char plugindesc[] = "Multi Mediacenter";
37char pluginpic[] = "%pluginpath%/mediacenter/plugin.png";
38
39int pluginaktiv = 0;
40int pluginversion = PLUGINVERSION;
41struct skin* pluginmenu = NULL;
42int pluginflag = 1; //don't show the plugin in pluginmanager
43
44//wird beim laden ausgefuehrt
45void init(void)
46{
47        pluginaktiv = 1;
48        struct skin* mainmenu = getscreen("mainmenu");
49        struct skin* listbox = getscreennode(mainmenu, "listbox");
50        struct skin* child = NULL;
51
52        if(mainmenu == NULL || listbox == NULL)
53                return;
54
55        child = checkscreennode(mainmenu, "mediacenter");
56        if(child != NULL)
57                changeinput(child, "start");
58
59        pluginmenu = child;
60        debug(10, "MC Plugin loadet !!!");
61}
62
63//wird beim entladen ausgefuehrt
64void deinit(void)
65{
66        pluginaktiv = 0;
67        debug(10, "MC Plugin removed !!!");
68}
69
70//wird in der Pluginverwaltung bzw Menue ausfeguehrt
71void start(void)
72{
73        mc_main();
74}
Note: See TracBrowser for help on using the repository browser.