return et->description;
}
-/*****************************************************************************
- *Function name
- * ltt_eventtype_facility : get the facility which contains the event type
- *Input params
- * et : an event type
- *Return value
- * LttFacility * : the facility
- ****************************************************************************/
-
-LttFacility *ltt_eventtype_facility(LttEventType *et)
-{
- return et->facility;
-}
-
/*****************************************************************************
*Function name
* ltt_eventtype_id : get the id of the event type
{
return f->name;
}
+
/*****************************************************************************
*Function name
* ltt_type_class : get the type class of the type
unsigned ret = 0;
if(likely(t->type_class == LTT_ENUM))
- ret = g_hash_table_size(t->enum_map);
+ // Permits non full enums ret = g_hash_table_size(t->enum_map);
+ ret = (unsigned)(t->highest_value - t->lowest_value);
return ret;
}