6 /* All event types and data types belong to their facilities and
7 are released at the same time. All fields belong to their tracefile and
8 are released at the same time. */
10 char *ltt_eventtype_name(ltt_eventtype
*et
);
12 char *ltt_eventtype_description(ltt_eventtype
*et
);
14 ltt_type
*ltt_eventtype_type(ltt_eventtype
*et
);
17 /* obtain the type name and size. The size is the number of bytes for
18 primitive types (INT, UINT, FLOAT, ENUM), or the size for the unsigned
19 integer length count for sequences. */
21 char *ltt_type_name(ltt_type
*t
);
23 ltt_type_enum
ltt_type_class(ltt_type
*t
);
25 unsigned ltt_type_size(ltt_tracefile
* tf
, ltt_type
*t
);
28 /* The type of nested elements for arrays and sequences. */
30 ltt_type
*ltt_type_element_type(ltt_type
*t
);
33 /* The number of elements for arrays. */
35 unsigned ltt_type_element_number(ltt_type
*t
);
38 /* The number of data members for structures. */
40 unsigned ltt_type_member_number(ltt_type
*t
);
43 /* The type of a data member in a structure. */
45 ltt_type
*ltt_type_member_type(ltt_type
*t
, unsigned i
);
48 /* For enumerations, obtain the symbolic string associated with a value
49 (0 to n - 1 for an enumeration of n elements). */
51 char *ltt_enum_string_get(ltt_type
*t
, unsigned i
);
54 /* The fields form a tree representing a depth first search of the
55 corresponding event type directed acyclic graph. Fields for arrays and
56 sequences simply point to one nested field representing the currently
57 selected element among all the (identically typed) elements. For structures,
58 a nested field exists for each data member. Each field stores the
59 platform/tracefile specific offset values (for efficient access) and
60 points back to the corresponding ltt_type for the rest. */
62 ltt_field
*ltt_field_element(ltt_field
*f
);
64 ltt_field
*ltt_field_member(ltt_field
*f
, unsigned i
);
66 ltt_type
*ltt_field_type(ltt_field
*f
);
This page took 0.030599 seconds and 4 git commands to generate.