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

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

[titan] fix debug

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