Changeset 12131 for trunk/ippTools/src/regtool.c
- Timestamp:
- Feb 28, 2007, 6:44:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r12096 r12131 41 41 // static guidePendingExpRow *newToP1PendingExp(newExpRow *newExp); 42 42 static chipPendingExpRow *newTochipPendingExp(pxConfig *config, newExpRow *newExp); 43 static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, rawImfileRow *rawImfile);43 static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile); 44 44 45 45 static rawExpRow *newToRawExp(pxConfig *config, newExpRow *exp); … … 664 664 return false; 665 665 } 666 667 // get the chip_id for the imfiles 668 psS64 chip_id = psDBLastInsertID(config->dbh); 666 669 psFree(chipPendingExp); 667 670 … … 712 715 for (long i = 0; i < psArrayLength(rawImfiles); i++) { 713 716 rawImfileRow *rawImfile = rawImfiles->data[i]; 714 chipPendingImfileRow *pendingImfile = rawImfileTochipPendingImfile(config, rawImfile);717 chipPendingImfileRow *pendingImfile = rawImfileTochipPendingImfile(config, chip_id, rawImfile); 715 718 if (!chipPendingImfileInsertObject(config->dbh, pendingImfile)){ 716 719 // rollback … … 890 893 891 894 chipPendingExpRow *chipExp = chipPendingExpRowAlloc( 892 exp->exp_tag,893 0x0, // chip version XXX calc version number894 0xdeadbeef, // guide version895 label,896 "my recipe",897 NULL, // groupa898 NULL // dvodb895 0, // chip ID, assigned by db 896 exp->exp_tag, 897 0xdeadbeef, // guide version 898 label, 899 "my recipe", // recipe 900 NULL, // expgroup 901 NULL // dvodb 899 902 ); 900 903 … … 903 906 904 907 905 static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, rawImfileRow *rawImfile)908 static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile) 906 909 { 907 910 return chipPendingImfileRowAlloc( 908 rawImfile->exp_tag,909 0x0, // chip version XXX calc version number910 0xdeadbeef,// guide version911 rawImfile->class_id,912 "my recipe",913 rawImfile->uri911 chip_id, 912 rawImfile->exp_tag, 913 0xdeadbeef, // guide version 914 rawImfile->class_id, 915 "my recipe", // recipe 916 rawImfile->uri 914 917 ); 915 918 }
Note:
See TracChangeset
for help on using the changeset viewer.
