[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

This attribute points to a tag list of attribute mappings which the gadget
uses to change the attribute IDs of an om_update's attribute/value pairs.
For example, if a gadget had the following ICA_MAP:

    struct TagItem map[] =
    {
        {PGA_Top, STRINGA_LongVal},
        {MYATTR, MYNEWATTR},
        {TAG_END, }
    };

before it sends an om_update to its ica_target, the gadget scans through
the OM_UPDATE message's attribute/value pairs looking for the pga_top and
MYATTR attributes.  If it finds the PGA_Top attribute, it changes PGA_Top
to stringa_longval.  likewise, if the gadget finds the myattr attribute,
it changes MYATTR to MYNEWATTR.  The gadget does not disturb the
attribute's value, only its ID.