PreviousNext

Schema Trigger Entry Flag Check Macros

The following macros evaluate to TRUE if the requested flag(s) is set in the schema entry trig_types field. In the following macros, S is a pointer to sec_attr_schema_entry_t and F is a sec_attr_trigs_types_flags_t type.

#define SA_SCH_TRIG_FLAG_IS_SET(S,F) \

(((S)->trig_types & (F)) == (F))

#define SA_SCH_TRIG_FLAG_IS_NONE(S) \

(SA_SCH_TRIG_FLAG_IS_SET((S),sec_attr_trig_type_none))

#define SA_SCH_TRIG_FLAG_IS_QUERY(S) \

(SA_SCH_TRIG_FLAG_IS_SET((S),sec_attr_trig_type_query))

#define SA_SCH_TRIG_FLAG_IS_UPDATE(S) \

(SA_SCH_FLAG_IS_SET((S),sec_attr_trig_type_update))