mi_integer mi_lo_specset_flags(LO_spec, flags) MI_LO_SPEC *LO_spec; mi_integer flags;
The mi_lo_specset_flags( ) function is the LO-specification accessor function that sets the attributes flag for a new smart large object. The attributes flag provides the following information about a smart large object:
Constants for these attributes are masked together into the single attributes-flag value. Therefore, to set a particular attribute, you must use the bitwise OR operator (|) to mask the attributes flag, as the following code fragment shows:
create_flags = MI_LO_ATTR_LOG | MI_LO_ATTR_KEEP_LASTACCESS_TIME mi_lo_specset_flags(LO_spec, create_flags)
When you set the attributes flag with mi_lo_specset_flags( ), you override any column-level or system-specified attributes flag in the LO-specification structure. You then pass this LO-specification structure to a smart-large-object creation function (such as mi_lo_create( )) to provide the attributes flag as a user-supplied storage characteristic for a new smart large object.
See also the descriptions of mi_lo_copy( ), mi_lo_create( ), mi_lo_from_file( ), mi_lo_spec_free( ), mi_lo_spec_init( ), and mi_lo_specget_flags( ).
For more information on the attributes flag of a smart large object or on how to use the mi_lo_specset_flags( ) function, see the IBM Informix: DataBlade API Programmer's Guide.