Changeset 199 for trunk/src


Ignore:
Timestamp:
06/02/10 21:53:31 (15 years ago)
Author:
tim
Message:

reworked part of regfi C API to make python wrappers simpler
continued work on python wrappers
fixed some issues in pyregfi-smoketest. WIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup.c

    r185 r199  
    277277  const REGFI_VK_REC* value;
    278278
    279   value = regfi_iterator_first_value(iter);
    280   while(value != NULL)
     279  regfi_iterator_first_value(iter);
     280  while((value = regfi_iterator_cur_value(iter)) != NULL)
    281281  {
    282282    if(!type_filter_enabled || (value->type == type_filter))
    283283      printValue(iter, value, prefix);
    284284    regfi_free_record(value);
    285     value = regfi_iterator_next_value(iter);
     285    regfi_iterator_next_value(iter);
    286286    printMsgs(iter->f);
    287287  }
     
    379379
    380380  root = cur = regfi_iterator_cur_key(iter);
    381   sub = regfi_iterator_first_subkey(iter);
     381  regfi_iterator_first_subkey(iter);
     382  sub = regfi_iterator_cur_subkey(iter);
    382383  printMsgs(iter->f);
    383384
     
    419420        }
    420421       
    421         sub = regfi_iterator_next_subkey(iter);
     422        regfi_iterator_next_subkey(iter);
     423        sub = regfi_iterator_cur_subkey(iter);
    422424      }
    423425      print_this = false;
     
    435437      cur = regfi_iterator_cur_key(iter);
    436438      regfi_free_record(sub);
    437       sub = regfi_iterator_first_subkey(iter);
     439      regfi_iterator_first_subkey(iter);
     440      sub = regfi_iterator_cur_subkey(iter);
    438441      print_this = true;
    439442    }
Note: See TracChangeset for help on using the changeset viewer.