#include <glib.h>
Go to the source code of this file.
Functions | |
const gchar * | get_tag_for_file (const gchar *filename, const gchar *dir, const char *basedir) |
const gchar* get_tag_for_file | ( | const gchar * | filename, | |
const gchar * | dir, | |||
const char * | basedir | |||
) |
File Name : tags.h Copyright (C) 2008 iRex Technologies B.V. All rights reserved.
Definition at line 88 of file tags.c.
References g_extension_pointer(), get_tag_for_dir(), and get_tag_for_extension().
Referenced by handle_changes().
00091 { 00092 static const char* empty = ""; 00093 00094 const char *ctag = get_tag_for_dir(dir, basedir); 00095 if (ctag) return ctag; 00096 00097 const char *ext = g_extension_pointer(filename); 00098 ctag = get_tag_for_extension(ext); 00099 if (ctag) return ctag; 00100 00101 return empty; 00102 }