summaryrefslogtreecommitdiffstats
path: root/vmchooser/inc/functions.h
blob: 1ec76f4107d8fd9608287c190a2e5b004efbeb3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _FUNCTIONS_H_
#define _FUNCTIONS_H_

#include <fltk/Widget.h>

#include <glob.h>

#include "DataEntry.h"

/* Attention: both return malloced array */
DataEntry** readXmlDir(char* path);
DataEntry** readLinSess(char* path);

/* This is thought as a callback-function for the Select-Browser */
void runImage(fltk::Widget* , void* p);

/* building & executing command for different Virtualizer */
string runImage(DataEntry&, string confxml);

/* Globs for a specific filetype (2. argument) */
glob_t* globber(char* path, char* filetype);

/* Gets folder name of this program */
char* getFolderName();

/* Reads output from a skript (2. argument) */
/* Adds the elements into xmlNode "printers" (1. argument) */
bool addPrinters(xmlNode* node, char* script); 
bool addScanners(xmlNode* node, char* script); 
void addInfo(xmlNode* node, DataEntry* dat); /* This is defined in addPrinters.cxx */

/* Write configuration xml */
string writeConfXml(DataEntry& dat);



/** Extra functions - defined in userSession.cxx */
void saveSession(DataEntry* dat);
char* readSession(void);


#endif /* _FUNCTIONS_H_ */