| 174 | } |
| 175 | |
| 176 | void ManufacturerSpecific::SetProductDetails |
| 177 | ( |
| 178 | uint16 manufacturerId, |
| 179 | uint16 productType, |
| 180 | uint16 productId |
| 181 | ) |
| 182 | { |
| 183 | |
| 184 | string configPath = ""; |
| 185 | ProductDescriptor *product = GetDriver()->GetManufacturerSpecificDB()->getProduct(manufacturerId, productType, productId); |
| 186 | |
| 187 | Node *node = GetNodeUnsafe(); |
| 188 | if (!product) { |
| 189 | char str[64]; |
| 190 | snprintf( str, sizeof(str), "Unknown: id=%.4x", manufacturerId ); |
| 191 | string manufacturerName = str; |
| 192 | |
| 193 | snprintf( str, sizeof(str), "Unknown: type=%.4x, id=%.4x", productType, productId ); |
| 194 | string productName = str; |
| 195 | |
| 196 | node->SetManufacturerName( manufacturerName ); |
| 197 | node->SetProductName( productName ); |
| 198 | } else { |
| 199 | node->SetManufacturerName( product->GetManufacturerName() ); |
| 200 | node->SetProductName( product->GetProductName() ); |
| 201 | node->SetProductDetails(product); |
| 202 | } |
| 203 | |
| 204 | node->SetManufacturerId( manufacturerId ); |
| 205 | |
| 206 | node->SetProductType( productType ); |
| 207 | |
| 208 | node->SetProductId( productId ); |
| 209 | |
| 210 | } |
| 211 | |
| 212 | |
| 213 | //----------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected