added preset loader class, some work on other preset utils

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@226 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-06-28 06:10:57 +00:00
parent d76d07c138
commit e795dbe22b
4 changed files with 256 additions and 3 deletions

View File

@ -0,0 +1,29 @@
//
// C++ Implementation: PresetLoader
//
// Description:
//
//
// Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "PresetLoader.hpp"
#include <iostream>
extern "C" {
#include <errno.h>
}
PresetLoader::PresetLoader(std::string pathame) {
// Initialize a directory watcher
#ifdef LINUX
if ((m_notifyFD = inotify_init()) == -1) {
std::cerr << "[PresetLoader] failed to initialize inotify instance (error " << errno << std::endl;
}
#endif
}