| 482 | |
| 483 | |
| 484 | ILboolean ILAPIENTRY ilIsValid(ILenum Type, ILconst_string FileName) |
| 485 | { |
| 486 | if (FileName == NULL) { |
| 487 | ilSetError(IL_INVALID_PARAM); |
| 488 | return IL_FALSE; |
| 489 | } |
| 490 | |
| 491 | switch (Type) |
| 492 | { |
| 493 | #ifndef IL_NO_TGA |
| 494 | case IL_TGA: |
| 495 | return ilIsValidTga(FileName); |
| 496 | #endif |
| 497 | |
| 498 | #ifndef IL_NO_JPG |
| 499 | case IL_JPG: |
| 500 | return ilIsValidJpeg(FileName); |
| 501 | #endif |
| 502 | |
| 503 | #ifndef IL_NO_DDS |
| 504 | case IL_DDS: |
| 505 | return ilIsValidDds(FileName); |
| 506 | #endif |
| 507 | |
| 508 | #ifndef IL_NO_PNG |
| 509 | case IL_PNG: |
| 510 | return ilIsValidPng(FileName); |
| 511 | #endif |
| 512 | |
| 513 | #ifndef IL_NO_BMP |
| 514 | case IL_BMP: |
| 515 | return ilIsValidBmp(FileName); |
| 516 | #endif |
| 517 | |
| 518 | #ifndef IL_NO_DICOM |
| 519 | case IL_DICOM: |
| 520 | return ilIsValidDicom(FileName); |
| 521 | #endif |
| 522 | |
| 523 | #ifndef IL_NO_EXR |
| 524 | case IL_EXR: |
| 525 | return ilIsValidExr(FileName); |
| 526 | #endif |
| 527 | |
| 528 | #ifndef IL_NO_GIF |
| 529 | case IL_GIF: |
| 530 | return ilIsValidGif(FileName); |
| 531 | #endif |
| 532 | |
| 533 | #ifndef IL_NO_HDR |
| 534 | case IL_HDR: |
| 535 | return ilIsValidHdr(FileName); |
| 536 | #endif |
| 537 | |
| 538 | #ifndef IL_NO_ICNS |
| 539 | case IL_ICNS: |
| 540 | return ilIsValidIcns(FileName); |
| 541 | #endif |
nothing calls this directly
no test coverage detected