Last change
on this file since 26912 was
24056,
checked in by nit, 10 years ago
|
[titan] add new plugindir system
|
-
Property svn:executable set to
*
|
File size:
882 bytes
|
Line | |
---|
1 | #include "../../titan/struct.h" |
---|
2 | #include "../../titan/debug.h" |
---|
3 | #include "../../titan/header.h" |
---|
4 | #include "../../titan/list.h" |
---|
5 | |
---|
6 | #include "instar.h" |
---|
7 | |
---|
8 | |
---|
9 | char pluginname[] = "IP-Kammera"; |
---|
10 | char plugindesc[] = "IP-Kammera zB. Firma INSTAR"; |
---|
11 | char pluginpic[] = "%pluginpath%/instar/instar.png"; |
---|
12 | //char pluginscript[] = "%pluginpath%/callmonitor1/fritzbox_msg_new.sh"; |
---|
13 | |
---|
14 | int pluginaktiv = 0; |
---|
15 | int pluginversion = PLUGINVERSION; |
---|
16 | |
---|
17 | //wird beim laden ausgefuehrt |
---|
18 | void init(void) |
---|
19 | { |
---|
20 | char* tmpstr = NULL; |
---|
21 | pluginaktiv = 1; |
---|
22 | |
---|
23 | tmpstr = createpluginpath("/instar/skin.xml", 0); |
---|
24 | readscreen(tmpstr, 118, 1); |
---|
25 | free(tmpstr); tmpstr = NULL; |
---|
26 | |
---|
27 | debug(10, "INSTAR Plugin loadet !!!"); |
---|
28 | } |
---|
29 | |
---|
30 | //wird beim entladen ausgefuehrt |
---|
31 | void deinit(void) |
---|
32 | { |
---|
33 | pluginaktiv = 0; |
---|
34 | debug(10, "INSTAR removed !!!"); |
---|
35 | delmarkedscreen(118); |
---|
36 | } |
---|
37 | |
---|
38 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
39 | void start(void) |
---|
40 | { |
---|
41 | instar_main(); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.