Changeset 15150
- Timestamp:
- Oct 1, 2007, 11:36:50 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCamera.c
r15101 r15150 637 637 psMetadata *contents = psMetadataAlloc(); // List of contents, with chipName:chipType 638 638 639 // XXX this is using the fpaItem->name not the chipName 639 640 psMetadataIterator *fpaIter = psMetadataIteratorAlloc(fpa, PS_LIST_HEAD, NULL); // Iteratr 640 641 psMetadataItem *fpaItem; // Item from iteration … … 683 684 return false; 684 685 } 686 687 // replace chip type with _mosaicChip 688 psMetadataIterator *contentIter = psMetadataIteratorAlloc(contents, PS_LIST_HEAD, NULL); // Iterator 689 psMetadataItem *contentItem; // Item from iteration 690 while ((contentItem = psMetadataGetAndIncrement(contentIter))) { 691 assert (contentItem->type == PS_DATA_STRING); 692 char *ptr = strchr (contentItem->data.str, ':'); 693 assert (ptr); 694 psString content = psStringNCopy (contentItem->data.str, ptr - contentItem->data.str); 695 psStringAppend(&content, ":_mosaicChip "); 696 psFree (contentItem->data.str); 697 contentItem->data.str = content; 698 } 699 psFree(contentIter); 700 701 # if (0) 685 702 while (psListLength(contents->list) > 0) { 686 703 psMetadataRemoveIndex(contents, PS_LIST_TAIL); … … 698 715 } 699 716 psFree(fpaIter); 717 # endif 700 718 701 719 psMetadata *chips = psMetadataAlloc(); // List of chip types, with cellName:cellType
Note:
See TracChangeset
for help on using the changeset viewer.
