Changeset 233 for trunk/python


Ignore:
Timestamp:
04/28/11 23:28:16 (13 years ago)
Author:
tim
Message:

improved version information interface by adding a special purpose function

Location:
trunk/python/pyregfi
Files:
2 edited

Legend:

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

    r232 r233  
    182182
    183183
     184## Returns the (py)regfi library version
     185#
     186# @return A string indicating the version
     187def getVersion():
     188    return regfi.regfi_version()
     189
     190
    184191## Retrieves messages produced by regfi during parsing and interpretation
    185192#
  • trunk/python/pyregfi/structures.py

    r228 r233  
    228228
    229229# Define function prototypes
     230regfi.regfi_version.argtypes = []
     231regfi.regfi_version.restype = c_char_p
     232
    230233regfi.regfi_alloc.argtypes = [c_int, REGFI_ENCODING]
    231234regfi.regfi_alloc.restype = POINTER(REGFI_FILE)
Note: See TracChangeset for help on using the changeset viewer.