Lines Matching refs:components

695 void bus_match_parse_free(struct bus_match_component *components, unsigned n_components) {  in bus_match_parse_free()  argument
697 free(components[i].value_str); in bus_match_parse_free()
699 free(components); in bus_match_parse_free()
707 struct bus_match_component *components = NULL; in bus_match_parse() local
801 if (!GREEDY_REALLOC(components, n_components + 1)) { in bus_match_parse()
806 components[n_components++] = (struct bus_match_component) { in bus_match_parse()
824 typesafe_qsort(components, n_components, match_component_compare); in bus_match_parse()
828 if (components[i].type == components[i+1].type) { in bus_match_parse()
833 *ret_components = components; in bus_match_parse()
839 bus_match_parse_free(components, n_components); in bus_match_parse()
843 char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) { in bus_match_to_string() argument
851 assert(components); in bus_match_to_string()
863 fputs(bus_match_node_type_to_string(components[i].type, buf, sizeof(buf)), f); in bus_match_to_string()
867 if (components[i].type == BUS_MATCH_MESSAGE_TYPE) in bus_match_to_string()
868 fputs(bus_message_type_to_string(components[i].value_u8), f); in bus_match_to_string()
870 fputs(components[i].value_str, f); in bus_match_to_string()
884 struct bus_match_component *components, in bus_match_add() argument
895 components[i].type, in bus_match_add()
896 components[i].value_u8, in bus_match_add()
897 components[i].value_str, in bus_match_add()
1041 enum bus_match_scope bus_match_get_scope(const struct bus_match_component *components, unsigned n_c… in bus_match_get_scope() argument
1047 assert(components); in bus_match_get_scope()
1056 const struct bus_match_component *c = components + i; in bus_match_get_scope()