static int main (string[] args) {
// A reference to our file
var file = File.new_for_path ("data.txt");
-
+ return 0;
}
*/
public void start()
{
- foreach(var i in this.top) {
- this.monitor(this.top[i]);
+ for(int i = 0; i < this.monitors.size ; i++) {
+ this.monitor(this.top[i], "" , 0);
}
}
/**
public void stop()
{
- foreach(int i = 0; i < this.monitors.size ; i++) {
+ for(int i = 0; i < this.monitors.size ; i++) {
this.monitors[i].cancel();
}
this.monitors = new ArrayList<FileMonitor>(); // clean /destroy/ kill old?
*
*
*/
- public void monitor(string path, string fn, int depth)
+ public void monitor(string path, Callback fn, int depth)
{
// print("ADD: " + path)
dest = new MonitorNamePathDir( of.get_basename(), of.get_path(), Path.get_dirname(of.get_path()));
}
- string event_name = "UKNOWN";
+ //string event_name = "UKNOWN";
// extract the event names ... - not sure if introspection is feasible in vala..