source: titan/plugins/filemanager/filemanager.c @ 24056

Last change on this file since 24056 was 24056, checked in by nit, 11 years ago

[titan] add new plugindir system

File size: 926 bytes
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "filemanager.h"
5
6char pluginname[] = "File Manager";
7char plugindesc[] = "File Manager";
8char pluginpic[] = "%pluginpath%/filemanager/plugin.png";
9
10int pluginaktiv = 0;
11int pluginversion = PLUGINVERSION;
12struct skin* pluginmenu = NULL;
13int pluginflag = 0;
14
15//wird beim laden ausgefuehrt
16void init(void)
17{
18        pluginaktiv = 1;
19        char* tmpstr = NULL;
20       
21        tmpstr = createpluginpath("/filemanager/skin.xml", 0);
22        readscreen(tmpstr, 240, 1);
23        free(tmpstr); tmpstr = NULL;
24 
25        debug(10, "File Manager Plugin loadet !!!");
26}
27
28//wird beim entladen ausgefuehrt
29void deinit(void)
30{
31        delmarkedscreen(240);
32        pluginaktiv = 0;
33        debug(10, "File Manager Plugin removed !!!");
34}
35
36//wird in der Pluginverwaltung bzw Menue ausfeguehrt
37void start(void)
38{
39        status.hangtime = 99999;
40        screenfilemanager();
41        status.hangtime = getconfigint("hangtime", NULL);
42}
Note: See TracBrowser for help on using the repository browser.