[Kazehakase-cvs] CVS update: kazehakase/src

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Sun Dec 3 19:24:15 JST 2006


Index: kazehakase/src/kz-search.c
diff -u kazehakase/src/kz-search.c:1.3 kazehakase/src/kz-search.c:1.4
--- kazehakase/src/kz-search.c:1.3	Sun Dec  3 15:06:11 2006
+++ kazehakase/src/kz-search.c	Sun Dec  3 19:24:14 2006
@@ -252,7 +252,7 @@
 }
 
 gboolean
-kz_search_register_document (KzSearch *search, const gchar *filename)
+kz_search_register_document (KzSearch *search, const gchar *uri)
 {
 	KzSearchClass *klass;
 
@@ -260,7 +260,21 @@
 
 	klass = KZ_SEARCH_GET_CLASS (search);
 	if (klass->register_document)
-		return klass->register_document (search, filename);
+		return klass->register_document (search, uri);
+	else
+		return FALSE;
+}
+
+gboolean
+kz_search_unregister_document (KzSearch *search, const gchar *uri)
+{
+	KzSearchClass *klass;
+
+	g_return_val_if_fail (KZ_IS_SEARCH (search), FALSE);
+
+	klass = KZ_SEARCH_GET_CLASS (search);
+	if (klass->unregister_document)
+		return klass->unregister_document (search, uri);
 	else
 		return FALSE;
 }
Index: kazehakase/src/kz-search.h
diff -u kazehakase/src/kz-search.h:1.2 kazehakase/src/kz-search.h:1.3
--- kazehakase/src/kz-search.h:1.2	Sun Dec  3 15:01:00 2006
+++ kazehakase/src/kz-search.h	Sun Dec  3 19:24:14 2006
@@ -47,7 +47,8 @@
 
 	gchar	   *(*get_search_result_html)     (KzSearch *search, const gchar *text);
 	KzBookmark *(*get_search_result_bookmark) (KzSearch *search, const gchar *text);
-	gboolean    (*register_document)	  (KzSearch *search, const gchar *filanem);
+	gboolean    (*register_document)	  (KzSearch *search, const gchar *uri);
+	gboolean    (*unregister_document)	  (KzSearch *search, const gchar *uri);
 	gboolean    (*update_index)		  (KzSearch *search);
 	gboolean    (*purge_index)		  (KzSearch *search);
 	GPid        (*optimize_index)             (KzSearch *search);
@@ -62,7 +63,8 @@
 gchar      *kz_search_get_search_result_html     (KzSearch *search, const gchar *text);
 KzBookmark *kz_search_get_search_result_bookmark (KzSearch *search, const gchar *text);
 
-gboolean    kz_search_register_document  	(KzSearch *search, const gchar *filename);
+gboolean    kz_search_register_document  	(KzSearch *search, const gchar *uri);
+gboolean    kz_search_unregister_document  	(KzSearch *search, const gchar *uri);
 gboolean    kz_search_update_index     		(KzSearch *search);
 gboolean    kz_search_purge_index		(KzSearch *search);
 GPid        kz_search_optimize_index    	(KzSearch *search);
Index: kazehakase/src/main.c
diff -u kazehakase/src/main.c:1.117 kazehakase/src/main.c:1.118
--- kazehakase/src/main.c:1.117	Sun Dec  3 15:01:00 2006
+++ kazehakase/src/main.c	Sun Dec  3 19:24:14 2006
@@ -46,7 +46,7 @@
 #include "locale.h"
 #include "utils.h"
 
-#if USE_HYPERESTRAIER
+#ifdef USE_HYPERESTRAIER
 #	include "kz-search.h"
 #elif USE_RAST
 #	include "rast-search.h"


More information about the Kazehakase-cvs mailing list
Back to archive index