first version of header files
[lttv.git] / ltt / branches / poly / include / ltt / facility.h
CommitLineData
7c6b3cd7 1#ifndef FACILITY_H
2#define FACILITY_H
975e44c7 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
11ltt_facility *ltt_facility_open(char *pathname, ltt_checksum c);
12
13int ltt_facility_close(ltt_facility *f);
14
15
16/* Obtain the name and checksum of the facility */
17
18char *ltt_facility_name(ltt_facility *f);
19
20ltt_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
26unsigned ltt_facility_eventtype_number(ltt_facility *f);
27
28ltt_eventtype *ltt_facility_eventtype_get(ltt_facility *f, unsigned i);
29
30ltt_eventtype *ltt_facility_eventtype_get_by_name(ltt_facility *f, char *name);
31
7c6b3cd7 32#endif // FACILITY_H
This page took 0.027328 seconds and 4 git commands to generate.