Adapt to the new format (several named control files). Provide a way to
[lttv.git] / ltt / branches / poly / include / ltt / facility.h
1 #ifndef FACILITY_H
2 #define FACILITY_H
3
4 #include <ltt/ltt.h>
5
6 /* Facilities are obtained from an opened trace. The structures associated
7 with a facility are released when the trace is closed. Each facility
8 is characterized by its name and checksum. */
9
10 char *ltt_facility_name(LttFacility *f);
11
12 LttChecksum ltt_facility_checksum(LttFacility *f);
13
14
15 /* Discover the event types within the facility. The event type integer id
16 relative to the trace is from 0 to nb_event_types - 1. The event
17 type id within the trace is the relative id + the facility base event
18 id. */
19
20 unsigned ltt_facility_base_id(LttFacility *f);
21
22 unsigned ltt_facility_eventtype_number(LttFacility *f);
23
24 LttEventType *ltt_facility_eventtype_get(LttFacility *f, unsigned i);
25
26 LttEventType *ltt_facility_eventtype_get_by_name(LttFacility *f, char *name);
27
28 #endif // FACILITY_H
This page took 0.029097 seconds and 4 git commands to generate.