| IDA SDK

Public Member Functions | List of all members
ioports_fallback_t Struct Referenceabstract

## 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] | 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.

Returns
  -1 on error or size of vector

## Public Member Functions
virtual bool | handle (qstring *errbuf, const ioports_t &ports, const char *line)=0

## Member Function Documentation

## ◆ handle()

virtual bool ioports_fallback_t::handle | ( | qstring * | errbuf,
|  | const ioports_t & | ports,
|  | const char * | line
| ) |  |
| pure virtual

Parameters

  [out] | errbuf | error message
  | ports | i/o port definitions
  | line | input line to parse

Returns
  success or fills ERRBUF with an error message

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

- diskio.hpp