diff src/filedata.c @ 792:99ea3d973ad3

added NotifyType
author nadvornik
date Fri, 06 Jun 2008 22:11:03 +0000
parents 6d65167764ea
children a25b228978a0
line wrap: on
line diff
--- a/src/filedata.c	Fri Jun 06 21:50:09 2008 +0000
+++ b/src/filedata.c	Fri Jun 06 22:11:03 2008 +0000
@@ -143,7 +143,7 @@
 	fd->version++;
 	if (fd->parent) fd->parent->version++;
 
-	file_data_send_notification(fd); /* FIXME there are probably situations when we don't want to call this  */
+	file_data_send_notification(fd, NOTIFY_TYPE_REREAD); /* FIXME there are probably situations when we don't want to call this  */
 }
 
 static void file_data_set_collate_keys(FileData *fd)
@@ -1488,14 +1488,14 @@
 }
 
 
-void file_data_send_notification(FileData *fd)
+void file_data_send_notification(FileData *fd, NotifyType type)
 {
 	GList *work = notify_func_list;
 	while(work)
 		{
 		NotifyData *nd = (NotifyData *)work->data;
 		DEBUG_1("Notify func calling: %p %s", nd, fd->path);
-		nd->func(fd, nd->data);
+		nd->func(fd, type, nd->data);
 		work = work->next;
 		}
 }