IDA SDK
|
Read i/o port definitions from a config file.
Each device definition in the input file begins with a line like this:
.devicename
After it go the port definitions in this format:
portname address
The bit definitions (optional) are represented like this:
portname.bitname bitnumber
Lines beginning with a space are ignored. comment lines should be started with ';' character.
The default device is specified at the start of the file:
.default device_name
[out] | ports | output vector |
device | contains device name to load. If default_device[0] == 0 then the default device is determined by .default directive in the config file. | |
file | config file name | |
callback | callback to call when the input line can't be parsed normally. |
Public Member Functions | |
virtual bool | handle (qstring *errbuf, const ioports_t &ports, const char *line)=0 |
|
pure virtual |
[out] | errbuf | error message |
ports | i/o port definitions | |
line | input line to parse |