Commit | Line | Data |
---|---|---|
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 | |
15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
16 | * MA 02111-1307, USA. | |
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 */ |
24 | struct bt_ctf_event; | |
7a4bdb54 | 25 | //struct LttvTraceState; |
556b540a YB |
26 | /* |
27 | Basic event container used through LTTV | |
28 | */ | |
29 | typedef struct | |
30 | { | |
31 | struct bt_ctf_event *bt_event; | |
32 | LttvTraceState *state; | |
33 | } LttvEvent; | |
34 | ||
7a4bdb54 YB |
35 | LttTime lttv_event_get_timestamp(LttvEvent *event); |
36 | unsigned long lttv_event_get_long_unsigned(LttvEvent *event, const char* field); | |
37 | long lttv_event_get_long(LttvEvent *event, const char* field); | |
38 | /*unsigned int lttv_event_get_int_unsigned(LttvEvent *event, const char* field); | |
39 | int lttv_event_get_int(LttvEvent *event, const char* field); | |
40 | */ | |
41 | ||
42 | char* lttv_event_get_string(LttvEvent *event, const char* field); | |
43 | ||
44 | ||
556b540a | 45 | #endif /* LTTV_EVENT_H */ |