IDA C++ SDK 9.2
Loading...
Searching...
No Matches
ioports_fallback_t Struct Referenceabstract

Read i/o port definitions from a config file. More...

#include <diskio.hpp>

Public Member Functions

virtual ~ioports_fallback_t ()
virtual bool handle (qstring *errbuf, const ioports_t &ports, const char *line)=0

Detailed Description

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 
Note
It is permissible to have a symbol mapped to several addresses but all addresses must be unique.
Parameters
[out]portsoutput vector
devicecontains device name to load. If default_device[0] == 0 then the default device is determined by .default directive in the config file.
fileconfig file name
callbackcallback to call when the input line can't be parsed normally.
Returns
-1 on error or size of vector

Constructor & Destructor Documentation

◆ ~ioports_fallback_t()

virtual ioports_fallback_t::~ioports_fallback_t ( )
inlinevirtual

Member Function Documentation

◆ handle()

virtual bool ioports_fallback_t::handle ( qstring * errbuf,
const ioports_t & ports,
const char * line )
pure virtual
Parameters
[out]errbuferror message
portsi/o port definitions
lineinput line to parse
Returns
success or fills ERRBUF with an error message

The documentation for this struct was generated from the following file: