Kaydet (Commit) 8c25ff87 authored tarafından Jiří Techet's avatar Jiří Techet

Make tm_workspace_update() public

üst 52076d19
......@@ -354,6 +354,8 @@
geany_functions->p_tm->tm_source_file_free
#define tm_workspace_remove_source_file \
geany_functions->p_tm->tm_workspace_remove_source_file
#define tm_workspace_update \
geany_functions->p_tm->tm_workspace_update
#define search_show_find_in_files_dialog \
geany_functions->p_search->search_show_find_in_files_dialog
#define highlighting_get_style \
......
......@@ -604,6 +604,7 @@ typedef struct TagManagerFuncs
void (*tm_source_file_update) (TMSourceFile *source_file, gboolean update_workspace);
void (*tm_source_file_free) (TMSourceFile *source_file);
gboolean (*tm_workspace_remove_source_file) (TMSourceFile *source_file, gboolean do_free, gboolean update);
void (*tm_workspace_update) (void);
}
TagManagerFuncs;
......
......@@ -293,7 +293,8 @@ static TagManagerFuncs tagmanager_funcs = {
&tm_workspace_add_source_file,
&tm_source_file_update,
&tm_source_file_free,
&tm_workspace_remove_source_file
&tm_workspace_remove_source_file,
&tm_workspace_update
};
static SearchFuncs search_funcs = {
......
......@@ -48,6 +48,11 @@ gboolean tm_workspace_add_source_file(TMSourceFile *source_file);
*/
gboolean tm_workspace_remove_source_file(TMSourceFile *source_file, gboolean do_free, gboolean update);
/*! Calls tm_source_file_update() for all workspace member source files and creates
workspace tag array. Use if you want to globally refresh the workspace.
*/
void tm_workspace_update(void);
#ifdef GEANY_PRIVATE
......@@ -89,11 +94,6 @@ gboolean tm_workspace_create_global_tags(const char *pre_process, const char **i
*/
void tm_workspace_recreate_tags_array(void);
/* Calls tm_source_file_update() for all workspace member source files.
Use if you want to globally refresh the workspace.
*/
void tm_workspace_update(void);
/* Dumps the workspace tree - useful for debugging */
void tm_workspace_dump(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment