Ignore:
Timestamp:
04/18/11 16:25:46 (13 years ago)
Author:
tim
Message:

added a test case for pyregfi multithreaded use
updated the regfi multithreaded test case
fixed several ctypes interface problems in pyregfi
added locking to pyregfi iterators for thread safety
fixed regfi talloc race conditions with an additional lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/pyregfi/structures.py

    r227 r228  
    171171REGFI_VALUE_LIST._fields_ = [('offset', c_uint32),
    172172                             ('cell_size', c_uint32),
    173                              ('num_children', c_uint32),
    174173                             ('num_values', c_uint32),
    175174                             ('elements', c_void_p),
     
    247246regfi.regfi_get_rootkey.restype = POINTER(REGFI_NK)
    248247
    249 regfi.regfi_free_record.argtypes = [c_void_p]
     248regfi.regfi_free_record.argtypes = [POINTER(REGFI_FILE), c_void_p]
    250249regfi.regfi_free_record.restype = None
    251250
    252 regfi.regfi_reference_record.argtypes = [c_void_p]
     251regfi.regfi_reference_record.argtypes = [POINTER(REGFI_FILE), c_void_p]
    253252regfi.regfi_reference_record.restype = c_bool
    254253
     
    290289regfi.regfi_nt2unix_time.restype = c_double
    291290
    292 regfi.regfi_iterator_new.argtypes = [POINTER(REGFI_FILE), REGFI_ENCODING]
     291regfi.regfi_iterator_new.argtypes = [POINTER(REGFI_FILE)]
    293292regfi.regfi_iterator_new.restype = POINTER(REGFI_ITERATOR)
    294293
     
    305304regfi.regfi_iterator_to_root.restype = c_bool
    306305
    307 regfi.regfi_iterator_walk_path.argtypes = [POINTER(REGFI_ITERATOR)]
     306regfi.regfi_iterator_walk_path.argtypes = [POINTER(REGFI_ITERATOR), POINTER(c_char_p)]
    308307regfi.regfi_iterator_walk_path.restype = c_bool
    309308
Note: See TracChangeset for help on using the changeset viewer.