975e44c7 |
1 | |
2 | #include <ltt/ltt.h> |
3 | |
4 | /* A facility is obtained from a .event file containing event type |
5 | declarations. The facility content must have the specified checksum. |
6 | The structures associated with a facility may be released with |
7 | a call to ltt_close_facility if its usage count is 0. */ |
8 | |
9 | ltt_facility *ltt_facility_open(char *pathname, ltt_checksum c); |
10 | |
11 | int ltt_facility_close(ltt_facility *f); |
12 | |
13 | |
14 | /* Obtain the name and checksum of the facility */ |
15 | |
16 | char *ltt_facility_name(ltt_facility *f); |
17 | |
18 | ltt_checksum ltt_facility_checksum(ltt_facility *f); |
19 | |
20 | |
21 | /* Discover the event types within the facility. The event type integer id |
22 | used here is specific to the trace (from 0 to nb_event_types - 1). */ |
23 | |
24 | unsigned ltt_facility_eventtype_number(ltt_facility *f); |
25 | |
26 | ltt_eventtype *ltt_facility_eventtype_get(ltt_facility *f, unsigned i); |
27 | |
28 | ltt_eventtype *ltt_facility_eventtype_get_by_name(ltt_facility *f, char *name); |
29 | |