[anjuta] language-support-cpp-java, symbol-db: improved interface.



commit 676bb9aabeb1d9e889c21aba32fe7aeb3480559a
Author: Massimo Corà <mcora src gnome org>
Date:   Tue Dec 8 17:36:48 2009 +0100

    language-support-cpp-java, symbol-db: improved interface.

 libanjuta/interfaces/libanjuta.idl                 |    2 +-
 .../cxxparser/engine-parser.h                      |    3 +--
 plugins/symbol-db/symbol-db-iface.c                |    6 +++---
 plugins/symbol-db/symbol-db-iface.h                |    4 ++--
 4 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/libanjuta/interfaces/libanjuta.idl b/libanjuta/interfaces/libanjuta.idl
index 780d059..cfb9797 100644
--- a/libanjuta/interfaces/libanjuta.idl
+++ b/libanjuta/interfaces/libanjuta.idl
@@ -5584,7 +5584,7 @@ interface IAnjutaSymbolManager
 	/**
 	 * FIXME COMMENTS.
 	 */	
-	IAnjutaIterable* search_symbol_in_scope (const gchar *pattern, IAnjutaSymbol *container_symbol, IAnjutaSymbolType match_types, gboolean include_types, gint results_limit, gint results_offset, IAnjutaSymbolField info_fields);
+	IAnjutaIterable* search_symbol_in_scope (const gchar *pattern, const IAnjutaSymbol *container_symbol, IAnjutaSymbolType match_types, gboolean include_types, gint results_limit, gint results_offset, IAnjutaSymbolField info_fields);
 	
 	
 	/**
diff --git a/plugins/language-support-cpp-java/cxxparser/engine-parser.h b/plugins/language-support-cpp-java/cxxparser/engine-parser.h
index 913b3a1..c92cfec 100644
--- a/plugins/language-support-cpp-java/cxxparser/engine-parser.h
+++ b/plugins/language-support-cpp-java/cxxparser/engine-parser.h
@@ -26,9 +26,8 @@ extern "C" {
 
 #include <libanjuta/interfaces/ianjuta-symbol-manager.h>		
 
-// FIXME: actually a dbe instance is passed. Change here when integrating with Anjuta.
 void engine_parser_init (IAnjutaSymbolManager * manager);
-	
+	 
 void engine_parser_test_print_tokens (const char *str);
 
 void engine_parser_parse_expression (const char*str);	
diff --git a/plugins/symbol-db/symbol-db-iface.c b/plugins/symbol-db/symbol-db-iface.c
index 9e91839..e459b6e 100644
--- a/plugins/symbol-db/symbol-db-iface.c
+++ b/plugins/symbol-db/symbol-db-iface.c
@@ -198,11 +198,11 @@ isymbol_manager_get_scope_chain (IAnjutaSymbolManager *sm,
 
 	return IANJUTA_ITERABLE (iterator);
 }
-
+ 
 IAnjutaIterable* 
 isymbol_manager_search_symbol_in_scope (IAnjutaSymbolManager *sm,
                                         const gchar *pattern, 
-                                        IAnjutaSymbol *container_symbol, 
+                                        const IAnjutaSymbol *container_symbol, 
                                         IAnjutaSymbolType match_types, 
                                         gboolean include_types, 
                                         gint results_limit, 
@@ -539,7 +539,6 @@ isymbol_manager_search_file (IAnjutaSymbolManager *sm, IAnjutaSymbolType match_t
 	return IANJUTA_ITERABLE (iterator);
 }
 
-
 guint
 isymbol_manager_search_file_async (IAnjutaSymbolManager *sm, IAnjutaSymbolType match_types, 
 				gboolean include_types,  IAnjutaSymbolField info_fields, const gchar *pattern,     			
@@ -626,6 +625,7 @@ isymbol_manager_iface_init (IAnjutaSymbolManagerIface *iface)
 	iface->get_scope_chain = isymbol_manager_get_scope_chain;
 	iface->get_symbol_more_info = isymbol_manager_get_symbol_more_info;
 	iface->get_symbol_by_id = isymbol_manager_get_symbol_by_id;
+	iface->search_symbol_in_scope = isymbol_manager_search_symbol_in_scope;
 	iface->search_system = isymbol_manager_search_system;
 	iface->search_system_async = isymbol_manager_search_system_async;
 	iface->search_project = isymbol_manager_search_project;
diff --git a/plugins/symbol-db/symbol-db-iface.h b/plugins/symbol-db/symbol-db-iface.h
index cddda88..6dce91d 100644
--- a/plugins/symbol-db/symbol-db-iface.h
+++ b/plugins/symbol-db/symbol-db-iface.h
@@ -81,7 +81,7 @@ isymbol_manager_get_symbol_by_id (IAnjutaSymbolManager *sm,
 								  gint symbol_id, 
 								  IAnjutaSymbolField info_fields,
 								  GError **err);
-
+ 
 IAnjutaIterable*
 isymbol_manager_get_symbol_more_info (IAnjutaSymbolManager *sm,
 								  const IAnjutaSymbol *symbol, 
@@ -98,7 +98,7 @@ isymbol_manager_get_parent_scope (IAnjutaSymbolManager *sm,
 IAnjutaIterable* 
 isymbol_manager_search_symbol_in_scope (IAnjutaSymbolManager *sm,
                                         const gchar *pattern, 
-                                        IAnjutaSymbol *container_symbol, 
+                                        const IAnjutaSymbol *container_symbol, 
                                         IAnjutaSymbolType match_types, 
                                         gboolean include_types, 
                                         gint results_limit, 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]