Ignore:
Timestamp:
05/08/11 13:33:49 (13 years ago)
Author:
tim
Message:

updated pyregfi to work with regfi changes
renamed some functions for more clarity
fixed some issues related to talloc_reference

File:
1 edited

Legend:

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

    r233 r252  
    2020
    2121REGFI_DATA_TYPE = c_uint32
    22 
     22REGFI_NTTIME = c_uint64
    2323
    2424# Prototype everything first so we don't have to worry about reference order
    25 class REGFI_NTTIME(Structure):
    26     pass
    27 
    2825class REGFI_VK(Structure):
    2926    pass
     
    9794read_cb_type = CB_FACTORY(c_int64, POINTER(REGFI_RAW_FILE), POINTER(c_char), c_size_t, use_errno=True)
    9895
    99 
    100 REGFI_NTTIME._fields_ = [('low', c_uint32),
    101                          ('high', c_uint32)]
    10296
    10397REGFI_VK._fields_ = [('offset', c_uint32),
     
    253247
    254248regfi.regfi_reference_record.argtypes = [POINTER(REGFI_FILE), c_void_p]
    255 regfi.regfi_reference_record.restype = c_bool
     249regfi.regfi_reference_record.restype = c_void_p
    256250
    257251regfi.regfi_fetch_num_subkeys.argtypes = [POINTER(REGFI_NK)]
     
    307301regfi.regfi_iterator_to_root.restype = c_bool
    308302
    309 regfi.regfi_iterator_walk_path.argtypes = [POINTER(REGFI_ITERATOR), POINTER(c_char_p)]
    310 regfi.regfi_iterator_walk_path.restype = c_bool
     303regfi.regfi_iterator_descend.argtypes = [POINTER(REGFI_ITERATOR), POINTER(c_char_p)]
     304regfi.regfi_iterator_descend.restype = c_bool
    311305
    312306regfi.regfi_iterator_cur_key.argtypes = [POINTER(REGFI_ITERATOR)]
     
    337331regfi.regfi_iterator_find_value.restype = c_bool
    338332
     333regfi.regfi_iterator_ancestry.argtypes = [POINTER(REGFI_ITERATOR)]
     334regfi.regfi_iterator_ancestry.restype = POINTER(POINTER(REGFI_NK))
    339335
    340336regfi.regfi_init.argtypes = []
Note: See TracChangeset for help on using the changeset viewer.