Update FSF address
[lttv.git] / lttv / lttv / event.h
CommitLineData
556b540a
YB
1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2012 Yannick Brosseau
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
b9ce0bad
YB
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16 * MA 02110-1301, USA.
556b540a
YB
17 */
18#ifndef LTTV_EVENT_H
19#define LTTV_EVENT_H
20
7a4bdb54
YB
21#include <lttv/time.h>
22#include <lttv/state.h>
556b540a
YB
23/* Forward declaration */
24struct bt_ctf_event;
7a4bdb54 25//struct LttvTraceState;
556b540a
YB
26/*
27 Basic event container used through LTTV
28*/
29typedef struct
30{
31 struct bt_ctf_event *bt_event;
32 LttvTraceState *state;
33} LttvEvent;
34
7a4bdb54
YB
35LttTime lttv_event_get_timestamp(LttvEvent *event);
36unsigned long lttv_event_get_long_unsigned(LttvEvent *event, const char* field);
37long lttv_event_get_long(LttvEvent *event, const char* field);
38/*unsigned int lttv_event_get_int_unsigned(LttvEvent *event, const char* field);
39int lttv_event_get_int(LttvEvent *event, const char* field);
40*/
41
42char* lttv_event_get_string(LttvEvent *event, const char* field);
43
44
556b540a 45#endif /* LTTV_EVENT_H */
This page took 0.024341 seconds and 4 git commands to generate.