diff options
Diffstat (limited to 'vmchooser2/inc/functions.h')
-rw-r--r-- | vmchooser2/inc/functions.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/vmchooser2/inc/functions.h b/vmchooser2/inc/functions.h new file mode 100644 index 0000000..0e5be33 --- /dev/null +++ b/vmchooser2/inc/functions.h @@ -0,0 +1,46 @@ +#ifndef _FUNCTIONS_H_ +#define _FUNCTIONS_H_ + +#include <libxml/xpath.h> + +#include <glob.h> + +#include "DataEntry.h" +#include <vector> + +/* Attention: both return malloced array */ +std::vector<DataEntry> readXmlDir(char* path); +std::vector<DataEntry> readLinSess(char* path); + +/* This is thought as a callback-function for the Select-Browser */ +void runImage(DataEntry); + +/* building & executing command for different Virtualizer */ +void 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 */ +void readGroupXml(DataEntry* dat, string group); +xmlXPathObjectPtr evalXPath(xmlDocPtr doc, const char* path); + +/* Write configuration xml */ +string writeConfXml(DataEntry& dat); + + + +/** Extra functions - defined in userSession.cxx */ +void saveSession(DataEntry* dat); +char* readSession(void); + + +#endif /* _FUNCTIONS_H_ */ + |