• Home
  • Raw
  • Download

Lines Matching refs:match

245 _xdg_mime_magic_parse_header (FILE *magic_file, XdgMimeMagicMatch *match)  in _xdg_mime_magic_parse_header()  argument
253 assert (match != NULL); in _xdg_mime_magic_parse_header()
261 match->priority = _xdg_mime_magic_read_a_number (magic_file, &end_of_file); in _xdg_mime_magic_parse_header()
264 if (match->priority == -1) in _xdg_mime_magic_parse_header()
287 match->mime_type = strdup (buffer); in _xdg_mime_magic_parse_header()
314 XdgMimeMagicMatch *match) in _xdg_mime_magic_parse_magic_line() argument
505 matchlet->next = match->matchlet; in _xdg_mime_magic_parse_magic_line()
506 match->matchlet = matchlet; in _xdg_mime_magic_parse_magic_line()
593 _xdg_mime_magic_match_compare_to_data (XdgMimeMagicMatch *match, in _xdg_mime_magic_match_compare_to_data() argument
597 return _xdg_mime_magic_matchlet_compare_level (match->matchlet, data, len, 0); in _xdg_mime_magic_match_compare_to_data()
602 XdgMimeMagicMatch *match) in _xdg_mime_magic_insert_match() argument
608 mime_magic->match_list = match; in _xdg_mime_magic_insert_match()
612 if (match->priority > mime_magic->match_list->priority) in _xdg_mime_magic_insert_match()
614 match->next = mime_magic->match_list; in _xdg_mime_magic_insert_match()
615 mime_magic->match_list = match; in _xdg_mime_magic_insert_match()
622 if (list->next->priority < match->priority) in _xdg_mime_magic_insert_match()
624 match->next = list->next; in _xdg_mime_magic_insert_match()
625 list->next = match; in _xdg_mime_magic_insert_match()
630 list->next = match; in _xdg_mime_magic_insert_match()
631 match->next = NULL; in _xdg_mime_magic_insert_match()
663 XdgMimeMagicMatch *match; in _xdg_mime_magic_lookup_data() local
670 for (match = mime_magic->match_list; match; match = match->next) in _xdg_mime_magic_lookup_data()
672 if (_xdg_mime_magic_match_compare_to_data (match, data, len)) in _xdg_mime_magic_lookup_data()
674 prio = match->priority; in _xdg_mime_magic_lookup_data()
675 mime_type = match->mime_type; in _xdg_mime_magic_lookup_data()
683 _xdg_mime_mime_type_equal (mime_types[n], match->mime_type)) in _xdg_mime_magic_lookup_data()
707 XdgMimeMagicMatch *match; in _xdg_mime_update_mime_magic_extents() local
710 for (match = mime_magic->match_list; match; match = match->next) in _xdg_mime_update_mime_magic_extents()
714 for (matchlet = match->matchlet; matchlet; matchlet = matchlet->next) in _xdg_mime_update_mime_magic_extents()
757 XdgMimeMagicMatch *match = NULL; /* Quiet compiler */ in _xdg_mime_magic_read_magic_file() local
766 match = _xdg_mime_magic_match_new (); in _xdg_mime_magic_read_magic_file()
767 state = _xdg_mime_magic_parse_header (magic_file, match); in _xdg_mime_magic_read_magic_file()
769 _xdg_mime_magic_match_free (match); in _xdg_mime_magic_read_magic_file()
772 state = _xdg_mime_magic_parse_magic_line (magic_file, match); in _xdg_mime_magic_read_magic_file()
774 (state == XDG_MIME_MAGIC_EOF && match->mime_type)) in _xdg_mime_magic_read_magic_file()
776 match->matchlet = _xdg_mime_magic_matchlet_mirror (match->matchlet); in _xdg_mime_magic_read_magic_file()
777 _xdg_mime_magic_insert_match (mime_magic, match); in _xdg_mime_magic_read_magic_file()
780 _xdg_mime_magic_match_free (match); in _xdg_mime_magic_read_magic_file()