Changeset 15339 for trunk/ippTools/src/magictool.c
- Timestamp:
- Oct 19, 2007, 3:18:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magictool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magictool.c
r15337 r15339 524 524 { 525 525 PS_ASSERT_PTR_NON_NULL(config, false); 526 527 bool status = false; 528 psString magic_id = psMetadataLookupStr(&status, config->args, "-magic_id"); 529 if (!status) { 530 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -magic_id"); 531 return false; 532 } 533 if (!magic_id) { 534 psError(PS_ERR_UNKNOWN, true, "-magic_id is required"); 535 return false; 536 } 537 538 psString node = psMetadataLookupStr(&status, config->args, "-node"); 539 if (!status) { 540 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -node"); 541 return false; 542 } 543 if (!node) { 544 psError(PS_ERR_UNKNOWN, true, "-node is required"); 545 return false; 546 } 547 548 psString uri = psMetadataLookupStr(&status, config->args, "-uri"); 549 if (!status) { 550 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -uri"); 551 return false; 552 } 553 if (!uri) { 554 psError(PS_ERR_UNKNOWN, true, "-uri is required"); 555 return false; 556 } 557 558 if (!magicNodeResultInsert(config->dbh, 559 (psS64)atoll(magic_id), 560 node, 561 uri 562 )) { 563 psError(PS_ERR_UNKNOWN, false, "database error"); 564 return false; 565 } 566 526 567 return true; 527 568 }
Note:
See TracChangeset
for help on using the changeset viewer.
