summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);