Mark tm_get_real_path with G_DEPRECATED_FOR

This will allow the compiler to notify any callers that it's deprecated.
The macro is guarded-out for when Geany is compiling so it won't cause
warnings when tagmanager uses it internally and for the utils_ wrapper.
This commit is contained in:
Matthew Brush 2016-09-11 07:07:26 -07:00 committed by Matthew Brush
parent 4a60cdd127
commit 44f96d08a8
3 changed files with 7 additions and 3 deletions

View File

@ -115,7 +115,7 @@ static char *realpath (const char *pathname, char *resolved_path)
of the file.
@param file_name The original file_name
@return A newly allocated string containing the real path to the file. NULL if none is available.
@deprecated since 1.29 (ABI 230)
@deprecated since 1.32 (ABI 235)
@see utils_get_real_path()
*/
GEANY_API_SYMBOL

View File

@ -42,7 +42,11 @@ TMSourceFile *tm_source_file_new(const char *file_name, const char *name);
void tm_source_file_free(TMSourceFile *source_file);
gchar *tm_get_real_path(const gchar *file_name);
gchar *tm_get_real_path(const gchar *file_name)
#ifndef GEANY_PRIVATE
G_DEPRECATED_FOR(utils_get_real_path)
#endif
;
#ifdef GEANY_PRIVATE

View File

@ -2196,7 +2196,7 @@ void utils_start_new_geany_instance(const gchar *doc_path)
* should be freed with `g_free()` when no longer needed, or @c NULL
* if the real path cannot be obtained.
*
* @since 1.29 (API 230)
* @since 1.32 (API 235)
*/
GEANY_API_SYMBOL
gchar *utils_get_real_path(const gchar *file_name)