first version of header files
[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 /* A facility is obtained from a .event file containing event type
7 declarations. The facility content must have the specified checksum.
8 The structures associated with a facility may be released with
9 a call to ltt_close_facility if its usage count is 0. */
10
11 ltt_facility *ltt_facility_open(char *pathname, ltt_checksum c);
12
13 int ltt_facility_close(ltt_facility *f);
14
15
16 /* Obtain the name and checksum of the facility */
17
18 char *ltt_facility_name(ltt_facility *f);
19
20 ltt_checksum ltt_facility_checksum(ltt_facility *f);
21
22
23 /* Discover the event types within the facility. The event type integer id
24 used here is specific to the trace (from 0 to nb_event_types - 1). */
25
26 unsigned ltt_facility_eventtype_number(ltt_facility *f);
27
28 ltt_eventtype *ltt_facility_eventtype_get(ltt_facility *f, unsigned i);
29
30 ltt_eventtype *ltt_facility_eventtype_get_by_name(ltt_facility *f, char *name);
31
32 #endif // FACILITY_H
This page took 0.032167 seconds and 4 git commands to generate.