Lines Matching refs:xmlNode
214 static xmlNode* testing_append_commands_node = NULL;
219 static xmlNode* testing_xml_next_tx_node = NULL;
623 static xmlNode* sanei_xml_find_first_child_with_name(xmlNode* parent,
626 xmlNode* curr_child = xmlFirstElementChild(parent);
636 static xmlNode* sanei_xml_find_next_child_with_name(xmlNode* child,
639 xmlNode* curr_child = xmlNextElementSibling(child);
650 static char* sanei_xml_get_prop(xmlNode* node, const char* name)
656 static int sanei_xml_get_prop_uint(xmlNode* node, const char* name)
669 static void sanei_xml_print_seq_if_any(xmlNode* node, const char* parent_fun)
681 static int sanei_xml_is_transaction_ignored(xmlNode* node)
715 static xmlNode* sanei_xml_skip_non_tx_nodes(xmlNode* node)
745 static int sanei_xml_is_known_commands_end(xmlNode* node)
752 static xmlNode* sanei_xml_peek_next_tx_node()
757 static xmlNode* sanei_xml_get_next_tx_node()
759 xmlNode* next = testing_xml_next_tx_node;
799 static char* sanei_xml_get_hex_data_slow_path(xmlNode* node, xmlChar* content, xmlChar* cur_content,
843 static char* sanei_xml_get_hex_data(xmlNode* node, size_t* size)
918 static void sanei_xml_set_data(xmlNode* node, const char* data)
926 static void sanei_xml_set_hex_data(xmlNode* node, const char* data,
934 static void sanei_xml_set_hex_attr(xmlNode* node, const char* attr_name,
951 static void sanei_xml_set_uint_attr(xmlNode* node, const char* attr_name,
960 static xmlNode* sanei_xml_append_command(xmlNode* sibling,
961 int indent, xmlNode* e_command)
965 xmlNode* e_indent = xmlNewText((const xmlChar*)"\n ");
971 static void sanei_xml_command_common_props(xmlNode* node, int endpoint_number,
980 static void sanei_xml_record_seq(xmlNode* node)
991 static void sanei_xml_break_if_needed(xmlNode* node)
1002 static int sanei_usb_check_attr(xmlNode* node, const char* attr_name,
1024 static int sanei_usb_attr_is(xmlNode* node, const char* attr_name,
1041 static int sanei_usb_check_attr_uint(xmlNode* node, const char* attr_name,
1064 static int sanei_usb_attr_is_uint(xmlNode* node, const char* attr_name,
1082 static int sanei_usb_check_data_equal(xmlNode* node,
1116 xmlNode* el_root = xmlDocGetRootElement(testing_xml_doc);
1143 static void sanei_usb_record_debug_msg(xmlNode* node, SANE_String_Const message)
1149 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"debug");
1159 static void sanei_usb_record_replace_debug_msg(xmlNode* node, SANE_String_Const message)
1175 xmlNode* node = sanei_xml_get_next_tx_node();
1247 xmlNode* el_root = xmlDocGetRootElement(testing_xml_doc);
1254 xmlNode* el_description =
1276 xmlNode* el_configurations =
1284 xmlNode* el_configuration =
1294 xmlNode* el_interface =
1316 xmlNode* el_endpoint =
1369 xmlNode* el_transactions =
1378 xmlNode* el_transaction = xmlFirstElementChild(el_transactions);
2608 static void sanei_xml_indent_child(xmlNode* parent, unsigned indent_count)
2626 xmlNode* e_root = xmlNewNode(NULL, (const xmlChar*) "device_capture");
2631 xmlNode* e_description = xmlNewChild(e_root, NULL, (const xmlChar*) "description", NULL);
2636 xmlNode* e_configurations = xmlNewChild(e_description, NULL,
2640 xmlNode* e_configuration = xmlNewChild(e_configurations, NULL,
2645 xmlNode* e_interface = xmlNewChild(e_configuration, NULL, (const xmlChar*) "interface", NULL);
2671 xmlNode* e_endpoint = xmlNewChild(e_interface, NULL, (const xmlChar*)"endpoint", NULL);
2686 xmlNode* e_transactions = xmlNewChild(e_root, NULL, (const xmlChar*)"transactions", NULL);
3740 xmlNode* node = sanei_xml_peek_next_tx_node();
3761 static void sanei_usb_record_read_bulk(xmlNode* node, SANE_Int dn,
3769 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"bulk_tx");
3777 xmlNode* e_content = xmlNewText((const xmlChar*)buf);
3798 static void sanei_usb_record_replace_read_bulk(xmlNode* node, SANE_Int dn,
3824 xmlNode* node = sanei_xml_get_next_tx_node();
4098 static int sanei_usb_record_write_bulk(xmlNode* node, SANE_Int dn,
4106 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"bulk_tx");
4118 static void sanei_usb_record_replace_write_bulk(xmlNode* node, SANE_Int dn,
4133 xmlNode* node = sanei_xml_peek_next_tx_node();
4164 xmlNode* node = sanei_xml_get_next_tx_node();
4457 sanei_usb_record_control_msg(xmlNode* node,
4468 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"control_tx");
4484 xmlNode* e_content = xmlNewText((const xmlChar*)buf);
4500 sanei_usb_record_replace_control_msg(xmlNode* node,
4533 xmlNode* node = sanei_xml_get_next_tx_node();
4780 static void sanei_usb_record_read_int(xmlNode* node,
4790 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"interrupt_tx");
4799 xmlNode* e_content = xmlNewText((const xmlChar*)buf);
4820 static void sanei_usb_record_replace_read_int(xmlNode* node,
4841 xmlNode* node = sanei_xml_get_next_tx_node();
5108 xmlNode* node = sanei_xml_get_next_tx_node();
5517 xmlNode* node = sanei_xml_get_next_tx_node();
5574 xmlNode* node = testing_append_commands_node;
5576 xmlNode* e_tx = xmlNewNode(NULL, (const xmlChar*)"get_descriptor");