/* match existing */
for (i = 0; i < p->num; i++)
{
- if (!FcStrCmpIgnoreCase (object, p->elts[i].object))
+ if (!FcStrCmpIgnoreCase ((FcChar8 *) object, (FcChar8 *) p->elts[i].object))
return &p->elts[i];
}
FcBool
-FcPatternAddString (FcPattern *p, const char *object, const char *s)
+FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s)
{
FcValue v;
v.type = FcTypeString;
- v.u.s = (char *) s;
+ v.u.s = s;
return FcPatternAdd (p, object, v, FcTrue);
}
}
FcResult
-FcPatternGetString (FcPattern *p, const char *object, int id, char ** s)
+FcPatternGetString (FcPattern *p, const char *object, int id, FcChar8 const ** s)
{
FcValue v;
FcResult r;
return r;
if (v.type != FcTypeString)
return FcResultTypeMismatch;
- *s = (char *) v.u.s;
+ *s = v.u.s;
return FcResultMatch;
}