libltt compiles
[lttv.git] / ltt / branches / poly / ltt / type.c
index 1d1481de453653599d2c4fde6fd59f2af66545f3..df1b8ea805d52c4edc90e064d52b9d2f1455c93c 100644 (file)
@@ -78,20 +78,6 @@ gchar *ltt_eventtype_description(LttEventType *et)
   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
@@ -133,6 +119,7 @@ GQuark ltt_field_name(LttField *f)
 {
   return f->name;
 }
+
 /*****************************************************************************
  *Function name
  *    ltt_type_class : get the type class of the type
@@ -251,7 +238,8 @@ unsigned ltt_type_element_number(LttType *t)
   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;
 }
This page took 0.023908 seconds and 4 git commands to generate.