Changeset 220 for trunk/python/pyregfi/structures.py
- Timestamp:
- 03/31/11 13:20:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/pyregfi/structures.py
r215 r220 224 224 ('state', c_void_p), 225 225 ] 226 227 228 # Load libregfi and define function prototypes 229 regfi = ctypes.CDLL(ctypes.util.find_library('regfi'), use_errno=True) 230 231 regfi.regfi_alloc.argtypes = [c_int, REGFI_ENCODING] 232 regfi.regfi_alloc.restype = POINTER(REGFI_FILE) 233 234 regfi.regfi_alloc_cb.argtypes = [POINTER(REGFI_RAW_FILE), REGFI_ENCODING] 235 regfi.regfi_alloc_cb.restype = POINTER(REGFI_FILE) 236 237 regfi.regfi_free.argtypes = [POINTER(REGFI_FILE)] 238 regfi.regfi_free.restype = None 239 240 regfi.regfi_log_get_str.argtypes = [] 241 regfi.regfi_log_get_str.restype = c_char_p 242 243 regfi.regfi_log_set_mask.argtypes = [c_uint16] 244 regfi.regfi_log_set_mask.restype = c_bool 245 246 regfi.regfi_get_rootkey.argtypes = [POINTER(REGFI_FILE)] 247 regfi.regfi_get_rootkey.restype = POINTER(REGFI_NK) 248 249 regfi.regfi_free_record.argtypes = [c_void_p] 250 regfi.regfi_free_record.restype = None 251 252 regfi.regfi_fetch_num_subkeys.argtypes = [POINTER(REGFI_NK)] 253 regfi.regfi_fetch_num_subkeys.restype = c_uint32 254 255 regfi.regfi_fetch_num_values.argtypes = [POINTER(REGFI_NK)] 256 regfi.regfi_fetch_num_values.restype = c_uint32 257 258 regfi.regfi_fetch_classname.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK)] 259 regfi.regfi_fetch_classname.restype = POINTER(REGFI_CLASSNAME) 260 261 regfi.regfi_fetch_sk.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK)] 262 regfi.regfi_fetch_sk.restype = POINTER(REGFI_SK) 263 264 regfi.regfi_fetch_data.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_VK)] 265 regfi.regfi_fetch_data.restype = POINTER(REGFI_DATA) 266 267 regfi.regfi_find_subkey.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK), 268 c_char_p, POINTER(c_uint32)] 269 regfi.regfi_find_subkey.restype = c_bool 270 271 regfi.regfi_find_value.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK), 272 c_char_p, POINTER(c_uint32)] 273 regfi.regfi_find_value.restype = c_bool 274 275 regfi.regfi_get_subkey.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK), 276 c_uint32] 277 regfi.regfi_get_subkey.restype = POINTER(REGFI_NK) 278 279 regfi.regfi_get_value.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK), 280 c_uint32] 281 regfi.regfi_get_value.restype = POINTER(REGFI_VK) 282 283 regfi.regfi_get_parentkey.argtypes = [POINTER(REGFI_FILE), POINTER(REGFI_NK)] 284 regfi.regfi_get_parentkey.restype = POINTER(REGFI_NK) 285 286 regfi.regfi_nt2unix_time.argtypes = [POINTER(REGFI_NTTIME)] 287 regfi.regfi_nt2unix_time.restype = c_double 288 289 regfi.regfi_iterator_new.argtypes = [POINTER(REGFI_FILE), REGFI_ENCODING] 290 regfi.regfi_iterator_new.restype = POINTER(REGFI_ITERATOR) 291 292 regfi.regfi_iterator_free.argtypes = [POINTER(REGFI_ITERATOR)] 293 regfi.regfi_iterator_free.restype = None 294 295 regfi.regfi_iterator_down.argtypes = [POINTER(REGFI_ITERATOR)] 296 regfi.regfi_iterator_down.restype = c_bool 297 298 regfi.regfi_iterator_up.argtypes = [POINTER(REGFI_ITERATOR)] 299 regfi.regfi_iterator_up.restype = c_bool 300 301 regfi.regfi_iterator_to_root.argtypes = [POINTER(REGFI_ITERATOR)] 302 regfi.regfi_iterator_to_root.restype = c_bool 303 304 regfi.regfi_iterator_walk_path.argtypes = [POINTER(REGFI_ITERATOR)] 305 regfi.regfi_iterator_walk_path.restype = c_bool 306 307 regfi.regfi_iterator_cur_key.argtypes = [POINTER(REGFI_ITERATOR)] 308 regfi.regfi_iterator_cur_key.restype = POINTER(REGFI_NK) 309 310 regfi.regfi_iterator_first_subkey.argtypes = [POINTER(REGFI_ITERATOR)] 311 regfi.regfi_iterator_first_subkey.restype = c_bool 312 313 regfi.regfi_iterator_cur_subkey.argtypes = [POINTER(REGFI_ITERATOR)] 314 regfi.regfi_iterator_cur_subkey.restype = POINTER(REGFI_NK) 315 316 regfi.regfi_iterator_next_subkey.argtypes = [POINTER(REGFI_ITERATOR)] 317 regfi.regfi_iterator_next_subkey.restype = c_bool 318 319 regfi.regfi_iterator_find_subkey.argtypes = [POINTER(REGFI_ITERATOR), c_char_p] 320 regfi.regfi_iterator_find_subkey.restype = c_bool 321 322 regfi.regfi_iterator_first_value.argtypes = [POINTER(REGFI_ITERATOR)] 323 regfi.regfi_iterator_first_value.restype = c_bool 324 325 regfi.regfi_iterator_cur_value.argtypes = [POINTER(REGFI_ITERATOR)] 326 regfi.regfi_iterator_cur_value.restype = POINTER(REGFI_VK) 327 328 regfi.regfi_iterator_next_value.argtypes = [POINTER(REGFI_ITERATOR)] 329 regfi.regfi_iterator_next_value.restype = c_bool 330 331 regfi.regfi_iterator_find_value.argtypes = [POINTER(REGFI_ITERATOR), c_char_p] 332 regfi.regfi_iterator_find_value.restype = c_bool 333 334 335 regfi.regfi_init.argtypes = [] 336 regfi.regfi_init.restype = None 337 regfi.regfi_init()
Note: See TracChangeset
for help on using the changeset viewer.