Move tm_source_file_update() to tm_workspace.c
commit0285ec28a5c813cd5c82b1ad390b584e122c1873
authorJiří Techet <techet@gmail.com>
Mon, 27 Oct 2014 22:44:20 +0000 (27 23:44 +0100)
committerJiří Techet <techet@gmail.com>
Thu, 30 Oct 2014 21:08:17 +0000 (30 22:08 +0100)
treef33b17e82e8f13c2d2674ac26c91b263e43f7bb1
parenta183d9cb97c3adde33e6a7dfd08591d802bc2316
Move tm_source_file_update() to tm_workspace.c

The placement of this function in tm_source_file is not right - by moving
it to the workspace we can make the source file unaware of the existence
of the workspace (no inclusion of tm_workspace.h in tm_source_file any
more). Also change tm_source_file_new() so it doesn't offer the source file
update.

After this change
* TMWorkspace knows TMSourceFile and TMTag
* TMSourceFile knows TMTag
* TMTag knows TMSourceFile
plugins/geanyfunctions.h
src/document.c
src/plugindata.h
src/plugins.c
tagmanager/src/tm_source_file.c
tagmanager/src/tm_source_file.h
tagmanager/src/tm_workspace.c
tagmanager/src/tm_workspace.h