Example tools:
Detecting the Loading and Unloading of Images (Image Instrumentation)
Iteration idioms:
// Visit every loaded image for( IMG img= APP_ImgHead(); IMG_Valid(img); img = IMG_Next(img) )
|
Type of function to be called when an image is loaded |
|
|
|
|
|
|
|
Use this to register a call back to catch the loading of an image
|
|
Register fun as a call back to be used when an image is unloaded. This is not an instrumentation function--it doesn't make sense to instrument a function when it removed from memory.
|
|
Close the image that was opened |
|
|
|
Find image by address
|
|
Find image by Id
|
|
|
|
|
|
Unique Id If an image is unloaded, the id is not reused for a different image. If an image is unloaded and the same one is loaded back, the id is different
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Allows one to open and image and browse it statically. There can only be one image opened at a time. File names are encoded in UTF8 (a superset of ASCII), this is supported for Linux (only for locales encoded in UTF8) and Windows Returns IMG_INVALID() if the image can not be opened |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|