fix marker id off by one
[lttv.git] / ltt / branches / poly / ltt / marker-field.h
CommitLineData
14b1ac27 1#ifndef _LTT_MARKERS_FIELD_H
2#define _LTT_MARKERS_FIELD_H
3
4/*
5 * Marker field support header.
6 *
7 * Mathieu Desnoyers, August 2007
8 * License: LGPL.
9 */
10
11#include <glib.h>
12
13enum ltt_type {
14 LTT_TYPE_SIGNED_INT,
15 LTT_TYPE_UNSIGNED_INT,
16 LTT_TYPE_STRING,
17 LTT_TYPE_COMPACT,
18 LTT_TYPE_NONE,
19};
20
21struct marker_field {
22 GQuark name;
23 enum ltt_type type;
24 unsigned long offset; /* offset in the event data */
25 unsigned long size;
26 unsigned long alignment;
27 unsigned long attributes;
5d9896fd 28 int static_offset; /* boolean - private - is the field offset statically
29 * known with the preceding types ? */
14b1ac27 30};
31
32static inline GQuark marker_field_get_name(struct marker_field *field)
33{
34 return field->name;
35}
36
37static inline enum ltt_type marker_field_get_type(struct marker_field *field)
38{
39 return field->type;
40}
41
42static inline unsigned long marker_field_get_size(struct marker_field *field)
43{
44 return field->size;
45}
46
47#endif //_LTT_MARKERS_FIELD_H
This page took 0.025108 seconds and 4 git commands to generate.