From 68f10303c771e630b76e17be8da9da8f475f44b9 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 11 Dec 2017 11:48:58 +0000 Subject: Make enchant_relocate public in the provider API As a result, bump version to 2.2.0. --- src/enchant-provider.h | 10 ++++++++++ src/lib.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/enchant-provider.h b/src/enchant-provider.h index ae3457d..65c827d 100644 --- a/src/enchant-provider.h +++ b/src/enchant-provider.h @@ -68,6 +68,16 @@ GSList *enchant_get_conf_dirs (void); */ char *enchant_get_prefix_dir(void); +/** + * enchant_relocate + * + * Returns a string giving the relocated path according to the location of the + * base directory of the enchant installation. + * + * Returns: the relocated path. Must be free'd. + */ +char *enchant_relocate (const char *path); + /** * enchant_dict_set_error * @dict: A non-null dictionary diff --git a/src/lib.c b/src/lib.c index 5842b9f..96f4390 100644 --- a/src/lib.c +++ b/src/lib.c @@ -93,7 +93,7 @@ typedef void (*EnchantPreConfigureFunc) (EnchantProvider * provider, /********************************************************************************/ /* Relocate a path and ensure the result is allocated on the heap */ -static char * +char * enchant_relocate (const char *path) { char *newpath = (char *) relocate (path); -- cgit v1.2.1