11#ifndef TM_SOURCE_FILE_H
12#define TM_SOURCE_FILE_H
16#include <glib-object.h>
23#define TM_SOURCE_FILE(source_file) ((TMSourceFile *) source_file)
26#define FALLBACK(X,Y) (X)?(X):(Y)
The TMSourceFile structure represents the source file and its tags in the tag manager.
GPtrArray * tags_array
Sorted tag array obtained by parsing the object.
char * file_name
Full file name (inc.
char * short_name
Just the name of the file (without the path)
GPtrArray * tm_source_file_read_tags_file(const gchar *tags_file, TMParserType mode)
TMParserType tm_source_file_get_named_lang(const gchar *name)
gchar tm_source_file_get_tag_access(const gchar *access)
gboolean tm_source_file_write_tags_file(const gchar *tags_file, GPtrArray *tags_array)
gboolean tm_source_file_parse(TMSourceFile *source_file, guchar *text_buf, gsize buf_size, gboolean use_buffer)
const gchar * tm_source_file_get_lang_name(TMParserType lang)
gchar tm_source_file_get_tag_impl(const gchar *impl)
void tm_source_file_free(TMSourceFile *source_file)
Decrements the reference count of source_file.
TMSourceFile * tm_source_file_new(const char *file_name, const char *name)
Initializes a TMSourceFile structure and returns a pointer to it.
struct TMSourceFile TMSourceFile
The TMSourceFile structure represents the source file and its tags in the tag manager.
GType tm_source_file_get_type(void)
gchar * tm_get_real_path(const gchar *file_name)
Given a file name, returns a newly allocated string containing the realpath() of the file.
gchar * utils_get_real_path(const gchar *file_name)
Get a link-dereferenced, absolute version of a file name.