summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-12-11 11:48:58 +0000
committerReuben Thomas <rrt@sc3d.org>2017-12-11 11:51:57 +0000
commit68f10303c771e630b76e17be8da9da8f475f44b9 (patch)
treeb199a761aae3eb628b672eaeeeb9f037b19f8c6f /src
parentffcf5a3beded372fc88a2699da2c2ad0468c92aa (diff)
downloadenchant-68f10303c771e630b76e17be8da9da8f475f44b9.tar.gz
Make enchant_relocate public in the provider API
As a result, bump version to 2.2.0.
Diffstat (limited to 'src')
-rw-r--r--src/enchant-provider.h10
-rw-r--r--src/lib.c2
2 files changed, 11 insertions, 1 deletions
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
@@ -69,6 +69,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
* @err: A non-null error message
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);