Next: , Previous: , Up: Application Interface Types   [Index]


4.3.2.3 struct x1f4_dxcast_type

typedef struct x1f4_dxcast_type {
    int call, type;
    struct x1f4_fxdata_type data;
} x1f4_dxcast_type;

The x1f4_dxcast_type record describes typed single slot containers. It is used by the libaime libraries providing type oblivious interfaces.

See Libraries.

See Type Oblivious Interfaces.

call

The call field is the reference counter. It is needed by data types that do not allow multiple data references and that do require special treatment when the single reference is being transferred or removed. Not needed by data types that observe the libaime referable data protocols.

See Referable Objects.

type

The type field is the type id of the data stored. It may indicate one of the intrinsic types when is one of the symbolic types, or an application defined data type.

See Symbolic Types.

See Intrinsic Types.

See Application Defined Types.

See Function Pointers.

data

The data field stores the data. It is not meant to be interpreted, and instead data is to be read from the field address. If, for once, the data type is intrinsic integer (and type is X1f4_E4_MODE), the data is to be stored and retrieved as:

    *(X1f4_E4_C_MODE *) &data

If the stored data is of one of the application defined types, data is to stored and retrieved as:

    *(X1f4_E4_C_USER *) &data

See C Types.

See struct x1f4_fxdata_type.