char * compGetLongPluginDescription (CompMetadata *m) { char str[1024]; sprintf (str, "/compiz/%s/long/child::text()", m->path); return compGetStringFromMetadataPath (m, str); }
char * compGetShortPluginDescription(CompMetadata *m) { char str[1024]; sprintf (str, "/ecomp/%s/short/child::text()", m->path); return compGetStringFromMetadataPath (m, str); }
static char * stringFromMetadataPathElement (CompMetadata *metadata, const char *path, const char *element) { char str[1024]; snprintf (str, 1024, "%s/%s", path, element); return compGetStringFromMetadataPath (metadata, str); }
char * compGetLongDisplayOptionDescription (CompMetadata *m, CompOption *o) { char str[1024]; sprintf (str, "/compiz/%s/display//option[@name=\"%s\"]/long/child::text()", m->path, o->name); return compGetStringFromMetadataPath (m, str); }
char * compGetShortScreenOptionDescription (CompMetadata *m, CompOption *o) { char str[1024]; sprintf (str, "/compiz/%s/screen//option[@name=\"%s\"]/short/child::text()", m->path, o->name); return compGetStringFromMetadataPath (m, str); }