Lines Matching defs:attr1
948 static void cmp_attr_fields(InputAttributes *attr1,
953 g_assert(attr1 && attr2);
954 g_assert(attr1 != attr2);
955 g_assert(attr1->flags == attr2->flags);
957 if (attr1->product != NULL)
959 g_assert(attr1->product != attr2->product);
960 g_assert(strcmp(attr1->product, attr2->product) == 0);
964 if (attr1->vendor != NULL)
966 g_assert(attr1->vendor != attr2->vendor);
967 g_assert(strcmp(attr1->vendor, attr2->vendor) == 0);
971 if (attr1->device != NULL)
973 g_assert(attr1->device != attr2->device);
974 g_assert(strcmp(attr1->device, attr2->device) == 0);
978 if (attr1->pnp_id != NULL)
980 g_assert(attr1->pnp_id != attr2->pnp_id);
981 g_assert(strcmp(attr1->pnp_id, attr2->pnp_id) == 0);
985 if (attr1->usb_id != NULL)
987 g_assert(attr1->usb_id != attr2->usb_id);
988 g_assert(strcmp(attr1->usb_id, attr2->usb_id) == 0);
992 tags1 = attr1->tags;
1019 tags1 = attr1->tags;