Last change
on this file since 18490 was
18490,
checked in by obi, 11 years ago
|
[titan] move hbbtv/browserfav to /var/swap/player
|
File size:
1018 bytes
|
Line | |
---|
1 | #include "../titan/struct.h" |
---|
2 | #include "../titan/debug.h" |
---|
3 | #include "../titan/header.h" |
---|
4 | #include "hbbtv.h" |
---|
5 | |
---|
6 | char pluginname[] = "hbbtv Browser"; |
---|
7 | char plugindesc[] = "hbbtv Browser"; |
---|
8 | char pluginpic[] = "%pluginpath%/hbbtv/plugin.png"; |
---|
9 | |
---|
10 | int pluginaktiv = 0; |
---|
11 | int pluginversion = PLUGINVERSION; |
---|
12 | |
---|
13 | //wird beim laden ausgefuehrt |
---|
14 | void init(void) |
---|
15 | { |
---|
16 | pluginaktiv = 1; |
---|
17 | debug(10, "hbbtv Plugin loadet !!!"); |
---|
18 | } |
---|
19 | |
---|
20 | //wird beim entladen ausgefuehrt |
---|
21 | void deinit(void) |
---|
22 | { |
---|
23 | pluginaktiv = 0; |
---|
24 | debug(10, "hbbtv Plugin removed !!!"); |
---|
25 | } |
---|
26 | |
---|
27 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
28 | void start(void) |
---|
29 | { |
---|
30 | if(!file_exist("/var/swap/player")) |
---|
31 | mkdir("/var/swap/player", 0777); |
---|
32 | |
---|
33 | screenoperafav(); |
---|
34 | } |
---|
35 | |
---|
36 | //start from infobar |
---|
37 | void starturl(void) |
---|
38 | { |
---|
39 | if(!file_exist("/var/swap/player")) |
---|
40 | mkdir("/var/swap/player", 0777); |
---|
41 | |
---|
42 | if(status.aktservice->channel != NULL && status.aktservice->channel->hbbtvurl != NULL) |
---|
43 | { |
---|
44 | debug(788, "hbbtvurl=%s", status.aktservice->channel->hbbtvurl); |
---|
45 | screenopera(status.aktservice->channel->hbbtvurl); |
---|
46 | } |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.