source: titan/plugins/instar/instar.c @ 31387

Last change on this file since 31387 was 31387, checked in by gost, 9 years ago

[instar] 5200... fix 1/4 view

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