IDA SDK
Functions
Segment classes and types

Detailed Description

See Segment types.

Functions

idaman ssize_t ida_export get_segm_class (qstring *buf, const segment_t *s)
 Get segment class. More...
 
idaman int ida_export set_segm_class (segment_t *s, const char *sclass, int flags=0)
 Set segment class. More...
 
idaman uchar ida_export segtype (ea_t ea)
 Get segment type. More...
 

Function Documentation

idaman ssize_t ida_export get_segm_class ( qstring buf,
const segment_t s 
)

Get segment class.

Segment class is arbitrary text (max 8 characters).

Parameters
bufoutput buffer. can not be NULL.
spointer to segment
Returns
size of segment class (-1 if s==NULL or bufsize<=0)
idaman int ida_export set_segm_class ( segment_t s,
const char *  sclass,
int  flags = 0 
)

Set segment class.

Parameters
spointer to segment (may be NULL)
sclasssegment class (may be NULL). If segment type is SEG_NORM and segment class is one of predefined names, then segment type is changed to:
Return values
1ok, name is good and segment is renamed
0failure, name is NULL or bad or segment is NULL
idaman uchar ida_export segtype ( ea_t  ea)

Get segment type.

Parameters
eaany linear address within the segment
Returns
Segment types, SEG_UNDF if no segment found at 'ea'