Lines Matching defs:type
138 * add mime type entry in s to mp
282 * load mime type files into mp
372 * find entry matching type
378 find(Mime_t* mp, const char* type)
392 if ((ent = (Ent_t*)dtmatch(mp->cap, type)) ||
393 !(rp = strchr(lp = (char*)type, '/')) ||
396 strcpy(buf, type);
438 * list mime <type,data> for pat on fp
550 expand(Mime_t* mp, register char* s, const char* name, const char* type, const char* opts)
572 sfputr(mp->buf, (char*)type, -1);
597 * return expanded command/path/value for <view,name,type,opts>
602 mimeview(Mime_t* mp, const char* view, const char* name, const char* type, const char* opts)
610 if (ent = find(mp, type))
616 if (s = expand(mp, s, name, type, opts))
698 return expand(mp, att->value, name, type, opts);