Geany  dev
Data Structures | Functions
tm_source_file.h File Reference

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...
 

Functions

gchar * tm_get_real_path (const gchar *file_name)
 Given a file name, returns a newly allocated string containing the realpath() of the file. More...
 
void tm_source_file_free (TMSourceFile *source_file)
 Frees a TMSourceFile structure, including all contents. More...
 
TMSourceFiletm_source_file_new (const char *file_name, const char *name)
 Initializes a TMSourceFile structure and returns a pointer to it. More...
 

Detailed Description

The TMSourceFile structure and associated functions are used to maintain tags for individual files.

Function Documentation

gchar* tm_get_real_path ( const gchar *  file_name)

Given a file name, returns a newly allocated string containing the realpath() of the file.

Parameters
file_nameThe original file_name
Returns
A newly allocated string containing the real path to the file. NULL if none is available.
void tm_source_file_free ( TMSourceFile source_file)

Frees a TMSourceFile structure, including all contents.

Before calling this function the TMSourceFile has to be removed from the TMWorkspace.

Parameters
source_fileThe 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.

Parameters
file_nameThe file name.
nameName of the used programming language, NULL for autodetection.
Returns
The created unparsed TMSourceFile object.