|
Geany 2.0
|
The TMSourceFile structure and associated functions are used to maintain tags for individual files. More...
Data Structures | |
| struct | TMSourceFile |
| The TMSourceFile structure represents the source file and its tags in the tag manager. More... | |
Typedefs | |
| typedef struct TMSourceFile | TMSourceFile |
| The TMSourceFile structure represents the source file and its tags in the tag manager. | |
Functions | |
| gchar * | tm_get_real_path (const gchar *file_name) G_DEPRECATED_FOR(utils_get_real_path) |
| Given a file name, returns a newly allocated string containing the realpath() of the file. More... | |
| void | tm_source_file_free (TMSourceFile *source_file) |
| Decrements the reference count of source_file. More... | |
| TMSourceFile * | tm_source_file_new (const char *file_name, const char *name) |
| Initializes a TMSourceFile structure and returns a pointer to it. More... | |
The TMSourceFile structure and associated functions are used to maintain tags for individual files.
| gchar * tm_get_real_path | ( | const gchar * | file_name | ) |
Given a file name, returns a newly allocated string containing the realpath() of the file.
| file_name | The original file_name |
| void tm_source_file_free | ( | TMSourceFile * | source_file | ) |
Decrements the reference count of source_file.
If the reference count drops to 0, then source_file is freed, including all contents. Make sure the source_file is already removed from any TMWorkSpace before the this happens.
| source_file | The source file to free. |
| TMSourceFile * tm_source_file_new | ( | const char * | file_name, |
| const char * | name | ||
| ) |
Initializes a TMSourceFile structure and returns a pointer to it.
The TMSourceFile has to be added to TMWorkspace to start its parsing.
| file_name | The file name. |
| name | Name of the used programming language, NULL to disable parsing. |