+
+void
+FcConfigSetRoot (FcConfig *config,
+ const FcChar8 *path)
+{
+ FcStrFree (config->rootDir);
+ config->rootDir = FcStrCopy (path);
+}
+
+const FcChar8 *
+FcConfigGetRoot (FcConfig *config)
+{
+ return config->rootDir;
+}
+
+FcChar8 *
+FcConfigGetRootPlus (FcConfig *config,
+ const FcChar8 *path)
+{
+ /*
+ * Since we have older funcs which do not take a config, it
+ * might be NULL, so handle that as well rather than crash.
+ */
+ if (!config || !config->rootDir)
+ return NULL;
+ return FcStrPathPlus (config->rootDir, path, NULL);
+}
+