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

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
RevLine 
[16100]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
[16140]9char pluginname[] = "IP-Kammera";
[16100]10char plugindesc[] = "IP-Kammera zB. Firma INSTAR";
11char pluginpic[] = "%pluginpath%/instar/instar.png";
12//char pluginscript[] = "%pluginpath%/callmonitor1/fritzbox_msg_new.sh";
13
14int pluginaktiv = 0;
[17097]15int pluginversion = PLUGINVERSION;
[16100]16
17//wird beim laden ausgefuehrt
18void init(void)
19{
[24056]20        char* tmpstr = NULL;
[16100]21        pluginaktiv = 1;
[24056]22       
23        tmpstr = createpluginpath("/instar/skin.xml", 0);
[16100]24        readscreen(tmpstr, 118, 1);
[24056]25        free(tmpstr); tmpstr = NULL;
[16100]26
27        debug(10, "INSTAR Plugin loadet !!!");
28}
29
30//wird beim entladen ausgefuehrt
31void deinit(void)
32{
33        pluginaktiv = 0;
34        debug(10, "INSTAR removed !!!");
35        delmarkedscreen(118);
36}
37
[16898]38//wird in der Pluginverwaltung bzw Menue ausfeguehrt
[16100]39void start(void)
40{
41        instar_main();
42}
Note: See TracBrowser for help on using the repository browser.