| IDA SDK

Macros | Functions
Segment groups
Segments

## Detailed Description

## Macros
#define | MAX_GROUPS 8
| max number of segment groups

## Functions
idaman int ida_export | set_group_selector (sel_t grp, sel_t sel)
| Create a new group of segments (used OMF files). More...
idaman sel_t ida_export | get_group_selector (sel_t grpsel)
| Get common selector for a group of segments. More...

## Function Documentation

## ◆ set_group_selector()

idaman int ida_export set_group_selector | ( | sel_t | grp,
|  | sel_t | sel
| ) |  |

Create a new group of segments (used OMF files).

Parameters

  grp | selector of group segment (segment type is SEG_GRP) You should create an 'empty' (1 byte) group segment It won't contain anything and will be used to redirect references to the group of segments to the common selector.
  sel | common selector of all segments belonging to the segment You should create all segments within the group with the same selector value.

Returns
  1 ok
  0 too many groups (see MAX_GROUPS)

## ◆ get_group_selector()

idaman sel_t ida_export get_group_selector | ( | sel_t | grpsel | ) |

Get common selector for a group of segments.

Parameters

  grpsel | selector of group segment

Returns
  common selector of the group or 'grpsel' if no such group is found